1
0
Fork 0
forked from lthn/blockchain
Commit graph

2893 commits

Author SHA1 Message Date
sowle
f2ebc76001
coretests: zarcanum_in_alt_chain test added (EXPOSES a bug with global outputs during alt block handling) 2022-11-23 22:01:55 +01:00
sowle
928d937a7b
get_amount_from_variant() made noexcept 2022-11-23 19:28:17 +01:00
sowle
ef38eb9724
p2p: when use-only-priority-nodes is present and none of priority nodes are specified -- don't connect to seed nodes 2022-11-23 18:55:03 +01:00
sowle
741aae9b7f
wallet: prepare_tx_sources() fixed for post-HF4 transfers 2022-11-23 18:09:49 +01:00
sowle
068d606557
coretests: zarcanum_basic_tests improved to check post-HF4 transfers via wallet2 with mixins (exposes a bug atm) + overloaded wallet2::transfer() 2022-11-23 15:10:06 +01:00
sowle
3ff4a69945
DIFFICULTY_STARTER was split into DIFFICULTY_POW_STARTER and DIFFICULTY_POS_STARTER (2) 2022-11-23 04:13:39 +01:00
sowle
4f703fe8f8
DIFFICULTY_STARTER was split into DIFFICULTY_POW_STARTER and DIFFICULTY_POS_STARTER 2022-11-23 03:05:59 +01:00
sowle
0b2fef7642
alt block tx validation fixed for htlc 2022-11-21 22:57:05 +01:00
sowle
8ca9e1261d
1) fill_tx_rpc_inputs adapted; 2) earlier deprecated get_to_key_input_from_txin_v removed completely 2022-11-21 22:55:59 +01:00
sowle
88e3190aad
bcs: more verbose logging 2022-11-21 21:49:11 +01:00
sowle
a0125f81e9
bcs: prevalidate_miner_transaction moved to be called before heavy PoW/PoS (now for alt blocks as well) 2022-11-21 20:40:14 +01:00
sowle
d06aa7796e
bcs: purge_altblock_keyimages_from_big_heap adapted 2022-11-21 20:38:56 +01:00
sowle
ce36a65994
Zarcanum PoS: fix for alt blocks validation 2022-11-21 18:43:36 +01:00
sowle
ec07a63f1e
chaingen: fix for test_generator::build_wallets() + more verbose error logging when didn't find a kernel 2022-11-21 18:39:39 +01:00
sowle
197ef6861f
validate_alt_block_input adapted for post-HF4 inputs (WIP, first attempt) 2022-11-18 20:55:02 +01:00
sowle
5fba04627b
the first working implementation of Zarcanum PoS verification + few bugs fixed in proof gen; zarcanum_pos_block_math test should now succeed 2022-11-18 04:18:41 +01:00
sowle
917437b31e
typo fixed 2022-11-17 23:01:37 +01:00
sowle
57acf4013d
coretests: zarcanum_pos_block_math greatly improved to cover various zarcanum signature issues (now exposes a known bug) 2022-11-17 22:20:33 +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
a1bae08a67
crypto: minor improvements 2022-11-17 00:38:33 +01:00
sowle
a0d3ca0bf3
fix for PoS verification (block hash is used as a message for sig), zarcanum_test_pos_math shoud now pass (2) 2022-11-16 23:49:03 +01:00
sowle
801f244d46
fix for PoS verification (block hash is used as a message for sig), zarcanum_test_pos_math shoud now pass 2022-11-16 23:04:29 +01:00
sowle
fa0f51a7ed
chaingen: add_block/add_block_info adapted, remove_block_info implemented 2022-11-16 22:04:18 +01:00
sowle
93a1aacaca
coretests: zarcanum_pos_math added to the list, now it exposes a bug with PoS block validation 2022-11-16 21:56:32 +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
51fbe0fc19
compilation fix 2022-11-16 03:16:50 +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
5e6103b38b
chaingen: pos_block_builder final touches 2 2022-11-16 01:11:53 +01:00
sowle
ea62c8833b
chaingen: pos_block_builder final touches 2022-11-16 00:28:18 +01:00
sowle
e02d15a170
coretests: pos_block_builder now supports Zarcanum 2022-11-11 19:10:50 +01:00
sowle
d0862e7be8
chaingen: construct_tx_to_key() gets tx version from block height correctly 2022-11-09 23:52:42 +01:00
sowle
4f02abac02
in get_tx_version() params named more obviously to avoid mistakes 2022-11-09 23:49:45 +01:00
sowle
89fa48880e
coretests: zarcanum_txs_with_big_decoy_set -> zarcanum_txs_with_big_shuffled_decoy_set_shuffled renamed and improved for post-HF4 (will not pass until a fix in chaingen) 2022-11-09 23:48:18 +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
01c656791a
hardfork activation message slightly changed to be less confusing (take a look @cryptozoidberg) 2022-11-09 16:53:15 +01:00
sowle
3cb903569c
chaingen: check_mixin_value_for_each_input() minor improvement 2022-11-08 18:25:52 +01:00
sowle
7d97fec3cf
coretests: gen_no_attchments_in_coinbase: CP hash changed 2022-11-08 02:07:59 +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
0b1a97832c
coretests: zarcanum_pos_block_math (WIP, pos_block_builder adaptation) 2022-11-08 00:11:11 +01:00
sowle
b2c346657a
wallet2: minor improvements in prepare_and_sign_pos_block() 2022-11-08 00:09:34 +01:00
sowle
d67dbd986f
chainge: pos_block_builder 2022-11-08 00:07:53 +01:00
sowle
e1bec6cc2f
chaingen: pos_block_builder improved (WIP), moved from construct_homemade_pos_miner_tx() to the standard one 2022-11-08 00:06:52 +01:00
sowle
d2469c6473
chaingen: output_index refactoring + fill_output_entries() now can avoid locked outs while looking for decoys 2022-11-08 00:04:31 +01:00
sowle
f8558a020a
construct_miner_tx now can use externally generated one time tx key 2022-11-08 00:00:24 +01:00
sowle
831719381b
coretests: zarcanum_txs_with_big_decoy_set added (reveals a bug in construct_tx) 2022-11-07 23:57:43 +01:00
sowle
bedf0285b0
blocks validation: prevalidate_miner_transaction() moved to go before heavy proof of work / proof of stake checks (@cryptozoidberg, please, take a look) 2022-11-04 21:17:27 +01:00
sowle
1a22991617
fix construct_miner_tx 2022-11-03 23:08:22 +01:00
sowle
3835051fcb
construct_miner_tx() and prepare_and_sign_pos_block() made consistent in terms of PoS input 2022-11-03 21:01:49 +01:00