1
0
Fork 0
forked from lthn/blockchain
Commit graph

143 commits

Author SHA1 Message Date
Dmitry Matsiukhov
5340c6db32
coretests: test for miner tx with non-empty extra_nonce before and after HF4 (#532)
* try check extra nonce in miner_tx

* update c1

* write extra nonces, create pow pos block, checkers for exnonce, bug with HF4

* success check pos block

* correct pos/pos extra nonce validation for hf3+

* clean code, separate to methods, add template test, pos/pow extra nonce check in block

* delete logs

* back normal naming

* fix review comments
2025-06-27 20:16:24 +02:00
sowle
48176b6a72
chaingen: "clear_tx_pool" now clears tx pool indeed 2025-06-09 05:44:49 +02:00
sowle
92ea96a41d
coretests: set_playtime_test_wallet_options() minor refactoring 2025-05-15 05:39:34 +03:00
sowle
745932738e
coretests: get_tx_version_and_harfork_id_from_events refactoring 2025-04-07 04:47:55 +03:00
sowle
d3a2392cfa
coretests: set_use_assets_whitelisting(false) made default for wallets in coretests 2025-04-01 17:03:43 +03:00
sowle
fb0ba230ea
chaingen: improvements for fill_tx_sources, get_sources_total_amount to support assets more correctly 2025-04-01 05:48:22 +03:00
sowle
79e3c6eaf1
chaingen, wallet: improved wallet transfers listing and balance checking when an asset is specified 2025-03-06 14:21:59 +01:00
sowle
cb74abddc5
coretests: chaingen: fill_tx_sources improved 2025-02-14 03:18:25 +01:00
sowle
ca9a8f95de
Merge branch 'develop' into txhfid 2025-02-03 18:29:45 +01:00
sowle
38e6556a49
2nd iteration on diminishing CPU mining presence in mainnet builds 2025-01-24 04:41:55 +01:00
sowle
6ab3d46529
gcc compilation fix 2024-12-28 18:20:14 +01:00
sowle
8dd8a6ac1c
tx hf id: WIP 2024-12-27 07:27:43 +01:00
sowle
13f524defb
tx hardfork id: wip (basic structures, miner tx creation adapted, tests adapted almost all + hard_fork_5_tx_version) 2024-12-06 05:39:18 +01:00
sowle
753effce28
fixed usage of generate_zc_outs_range_proof() 2024-10-31 04:00:11 +01:00
sowle
3a6e0c0f2f
Merge branch 'develop' into concise
# Conflicts:
#	src/wallet/wallet2.cpp
#	src/wallet/wallet2_base.h
2024-10-09 01:03:02 +02:00
sowle
08281059fb
Merge branch 'develop' into secp256k1
# Conflicts:
#	src/gui/qt-daemon/layout
#	src/simplewallet/simplewallet.cpp
#	src/version.h.in
#	tests/core_tests/chaingen_main.cpp
#	tests/core_tests/multiassets_test.cpp
#	tests/core_tests/multiassets_test.h
#	tests/unit_tests/multiassets_test.cpp
2024-09-23 14:24:00 +02:00
sowle
e737bf5e02
chaingen: check_balance_via_wallet() various improvements 2024-09-23 05:39:40 +02:00
Stёpa Dolgorukov
9d10050325
coretests: asset_operation_in_consolidated_tx test added (#459)
* coretests: Implement "asset_operation_in_consolidated_tx" test
* Define "construct_tx" overload with a generation context argument

---------

Co-authored-by: crypto.sowle <crypto.sowle@gmail.com>
2024-09-12 22:29:09 +02:00
cryptozoidberg
2a2987b17a
concise mode: last setings for production and tests 2024-09-09 18:26:16 +04:00
cryptozoidberg
ca09405491
core tests working 2024-09-02 21:44:41 +04:00
sowle
66f2761f67
chaingen: find_global_index_for_output, generate_pos_block_with_given_coinstake adapted for HF4; decode_output_amount_and_asset_id, decode_native_output_amount_or_throw added 2024-06-01 21:12:26 +02:00
sowle
15e653a8ae
minor refactoring: get_base_block_reward() now requires only block height (for clarity) 2024-04-22 17:45:10 +02:00
sowle
021fbb7d37
coretests: added test hardfork_4_wallet_sweep_bare_outs which exposes a bug in sweep_bare_outs() where it fails if there's not enough decoys 2024-04-09 21:43:13 +02:00
sowle
dd04d6367b
coretests: multiassets_basic_test improved to reflect recent changes with tx pool validation 2024-03-27 22:18:06 +01:00
cryptozoidberg
9af876ccaa
decoy selection algo refactoring 2024-03-25 21:56:46 +01:00
sowle
0b77c8f934
chaingen: minor fix for proper initialization of gen_context 2024-02-08 18:57:22 +01:00
sowle
31101bc788
PoS mining, construct_block_template, and chaingen infrastructure adapted for fee burning after HF4 2024-02-07 18:48:18 +01:00
cryptozoidberg
97a6cb580f
minor changes to zarcanum test to fit coinage rule 2024-01-30 22:24:45 +01:00
cryptozoidberg
100d46fa9b
changes and fixes over few tests in connection to hardfork 4 2024-01-30 18:59:47 +01:00
cryptozoidberg
1be00ea3c8
got rid of warnings 2024-01-28 19:40:34 +01:00
cryptozoidberg
b81e168b2a
CURRENCY_HF4_MANDATORY_DECOY_SET_SIZE implemented as configurable(for coretest we would need to have 0 mixins due to old tests) 2024-01-16 21:32:10 +01:00
sowle
964968ded0
get_actual_timestamp() -> get_block_timestamp_from_miner_tx_extra(), corresponding check in pos block validation has been adjusted 2023-11-02 16:47:18 +01:00
sowle
46a0db21ec
Merge branch 'develop' into cryptoassets
# Conflicts:
#	CMakeLists.txt
#	README.md
#	contrib/epee/include/net/http_client.h
#	src/currency_core/blockchain_storage.cpp
#	src/currency_core/currency_core.cpp
#	src/currency_core/currency_format_utils.cpp
#	src/gui/qt-daemon/layout
#	src/rpc/core_rpc_server.cpp
#	src/rpc/core_rpc_server.h
#	src/rpc/core_rpc_server_commands_defs.h
#	src/version.h.in
#	src/wallet/wallet2.cpp
#	src/wallet/wallet2.h
#	src/wallet/wallet_public_structs_defs.h
#	src/wallet/wallet_rpc_server.h
#	tests/core_tests/chaingen.cpp
#	tests/core_tests/pos_validation.cpp
#	tests/core_tests/wallet_tests.cpp
#	tests/performance_tests/main.cpp
2023-11-01 23:48:36 +01:00
cryptozoidberg
ebb8f7b6ff
wallet sync state moved to separate base structure 2023-10-31 18:29:57 +01:00
sowle
6343812006 mixins support implemented in wallet2::prepare_and_sign_pos_block() 2023-10-31 15:45:35 +01:00
sowle
56de784054 potential fix for call_COMMAND_RPC_GET_EST_HEIGHT_FROM_DATE in wallet 2023-10-30 20:09:02 +01:00
sowle
146bf51021
chaingen: balance_via_wallet() now supports asset id, replace_coinbase_in_genesis_block() fixed 2023-10-18 21:08:16 +02:00
sowle
a6036e2a13
wallet & PoS: don't try to mine a PoS block if the current sequence factor is too high 2023-08-09 01:38:00 +02:00
sowle
c1e0bc79a2
chaingen: replace_coinbase_in_genesis_block() 2023-08-06 01:51:31 +02:00
sowle
8a8477656d
chaingen: fixed few bugs in construct_tx_with_many_outputs() and put_alias_via_tx_to_list() 2023-08-06 01:28:18 +02:00
sowle
9e61ccfedc
coretests: construct_pow_block_with_alias_info_in_coinbase and construct_block_gentime_with_coinbase_cb adapted for hf4 2023-08-04 02:47:52 +02:00
sowle
b0bbca04d6
coretests: fixed a bug with ZC outs handling in fill_tx_sources() 2023-08-02 22:56:57 +02:00
cryptozoidberg
bf908f43a6
Merge branch 'cryptoassets' into recent_history 2023-06-20 21:59:53 +02:00
cryptozoidberg
2860d030a3
fixes of different situations related to contracts and unconfirmed state 2023-06-16 20:19:49 +02:00
cryptozoidberg
b744dfb79b
all tests compilation fixed(still a lot of broken tests) 2023-06-13 23:06:55 +02:00
sowle
e80e4a60cc
1) refactored block template creation and construct_miner_tx to incorporate block reward, essential for Zarcanum PoS; 2) fixed a bug in Zarcanum PoS generation; zarcanum_block_with_txs test now passes successfully 2023-06-09 01:19:37 +02:00
sowle
ce67a1bd1c
coretests: fixed several bugs in chaingen (init_test_wallet now sets hardforks correctly, fill_sources_and_destinations has been adjected to correctly set destinations in case of random split policy) 2023-06-06 22:37:32 +02:00
sowle
f164335e4e
coretests: zarcanum_in_alt_chain fixed by temporary disabling altchain checks for ZC inputs (+few improvements) 2023-05-22 04:27:40 +02:00
cryptozoidberg
17188ab8fb
properly configured pos_altblocks_validation 2023-05-20 00:53:53 +02:00
cryptozoidberg
b6fecfadff
tx json struct made optional 2023-05-19 19:23:31 +02:00