Dmitry Matsiukhov
a08772ea6a
coretests: tx_input_mixins test added (test that will combine spending old coins and new coins in one tx and use mixins as 15)
...
* try to write test for 2 input with nmix
* one of incorrect version
* add test for input old/new
* refactoring and add comments
* delete garbage
* fix from vector variant to unordered_map
* add comment
* using to typedef
2025-07-15 23:36:53 +03:00
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
46eab64834
rename: encrypt_attachments() -> encrypt_payload_items() + test gen_wallet_decrypted_attachments -> gen_wallet_decrypted_payload_items improved (tx_comment put in extra)
2025-06-20 01:30:00 +02:00
sowle
745932738e
coretests: get_tx_version_and_harfork_id_from_events refactoring
2025-04-07 04:47:55 +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
cb74abddc5
coretests: chaingen: fill_tx_sources improved
2025-02-14 03:18:25 +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
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
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
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
31101bc788
PoS mining, construct_block_template, and chaingen infrastructure adapted for fee burning after HF4
2024-02-07 18:48:18 +01:00
cryptozoidberg
761fd4d6db
fixed few tests for mainnet-compiled version
2024-02-04 22:03:27 +01:00
sowle
920a08c5ce
gcc compilation fix
2023-11-02 18:40:09 +01:00
sowle
406bc5d78e
removed deprecated absolute_output_offsets_to_relative(), chaingen was adapted accordingly
2023-11-02 18:29:55 +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
841e5e7557
coretests: chaingen: minor improvement
2023-10-16 11:41:24 +02:00
sowle
44cf9fd3fe
gcc compilation issues fixed
2023-08-06 03:17:26 +02:00
sowle
c1e0bc79a2
chaingen: replace_coinbase_in_genesis_block()
2023-08-06 01:51:31 +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
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
363d1bc316
coretests: redesigned test environment to allow individual tests to be conducted against various activated hardforks
2023-06-03 04:12:01 +02:00
cryptozoidberg
17188ab8fb
properly configured pos_altblocks_validation
2023-05-20 00:53:53 +02:00
cryptozoidberg
62d173424a
changed approach to turn core_tests against hardforks
2023-05-01 00:03:24 +02:00
cryptozoidberg
a83dedf2a4
multiple fixes over old block verification tests
2023-04-30 00:43:49 +02:00
cryptozoidberg
64a043a18f
fixed few bugs related to aliases registration and block versions
2023-04-26 23:59:33 +02:00
sowle
a9ac0a24eb
1) outputs_generation_context is now part of finalize_tx_params; 2) outputs_generation_context -> tx_generation_context
2023-04-12 20:13:54 +02:00
sowle
cce4aaaaa3
Zarcanum adaptation for confidential assets: balance and range proofs generation/verification has been debugged (WIP)
2023-03-21 02:34:29 +01:00
sowle
72dab7bb1e
Zarcanum & assets balance proof refactoring: WIP
2023-03-17 23:29:26 +01:00
sowle
917437b31e
typo fixed
2022-11-17 23:01:37 +01:00
sowle
35b3be92eb
chaingen: more verbose error logging in check_tx_verification_context() and block_tx_verification_context()
2022-11-17 22:19:06 +01:00
sowle
fa0f51a7ed
chaingen: add_block/add_block_info adapted, remove_block_info implemented
2022-11-16 22:04:18 +01:00
sowle
a7198b3313
coretests: get_params_for_next_pos_block() + zarcanum_test_pos_math finally makes custom and normal gen-time PoS Zarcanum blocks
2022-11-16 03:34:42 +01:00
sowle
8543bb187f
compilation fix
2022-11-16 03:15:31 +01:00
sowle
94c9c0cebc
chaingen: 1) added support of mixins for build_wallets (via proxy stub); 2) add_block_info adatped for zc inputs + minor improvements
2022-11-16 02:31:22 +01:00
sowle
c542b86200
chaingen: 1) shuffle_source_entries impemented; 2) zarcanum_txs_with_big_decoy_set improved for pre-HF4 part
2022-11-09 16:57:48 +01:00
sowle
266a0556ce
chaingen: 1) check_hardfork_inactive implemented, 2) check_hardfork_* callbacks now calls BCS::is_hardfork_active(), i.e. check against top_block_height+1 instead of top_block_height
2022-11-09 16:55:54 +01:00
sowle
5f8c90bac6
1) absolute_output_offsets_to_relative() is now deprecated, new functions introduced to be used instead: prepare_outputs_entries_for_key_offsets() and absolute_sorted_output_offsets_to_relative_in_place()
...
2) fixed incorrect key_offsets sorting in construct_tx. Coretest zarcanum_txs_with_big_decoy_set now should pass okay.
2022-11-08 00:17:34 +01:00
sowle
096de774b1
coretests: 1) test_gentime_settings_restorer; 2) zarcanum_pos_block_math -> zarcanum_gen_time_balance + improvements
2022-11-01 00:10:51 +01:00
sowle
20e72f18fc
coretests: 1) ignoring invalid blocks/txs made optional (may be disabled if necessary); 2) hard_fork_2_no_new_structures_before_hf fixed
2022-11-01 00:06:47 +01:00
sowle
45d76ee28a
coretests: blocks and txs that are marked as bad are now skipped by chaingen::find_block_chain
2022-10-31 18:17:34 +01:00