1
0
Fork 0
forked from lthn/blockchain
Commit graph

2881 commits

Author SHA1 Message Date
sowle
2a74787d8e
wallet: if during tx constructing the number of outs is less than CURRENCY_TX_MIN_ALLOWED_OUTS the last one will be split randomly to fulfill the requirement 2022-10-01 21:17:17 +02:00
sowle
a8ecd1a645
wallet: handling ZC outputs fixed 2022-10-01 21:14:32 +02:00
sowle
e2b6f88686
1) get_input_expected_signature_size() added; 2) get_object_blobsize(tx) improved 2022-10-01 21:12:32 +02:00
sowle
7d33323a97
1) generate_ZC_sig fixed;
2) tx balance proof now generates only for txs with no ZC inputs;
3) check_inputs_types_suppored fixed;
4) check_outs_valid fixed;
5) check_inputs_overflow fixed;
2022-10-01 21:10:22 +02:00
sowle
3fd984396e
unit tests: tx_signatures_packing added 2022-10-01 20:59:04 +02:00
cryptozoidberg
5ab9a2b974
fixed compilation issues regarding asset_descriptors 2022-09-30 21:23:06 +02:00
cryptozoidberg
c61149f480
added put/pop asset info to core 2022-09-29 23:44:00 +02:00
sowle
df11160e7a
decompose_amount_randomly + unit test 2022-09-29 21:54:15 +02:00
sowle
5bfbb8091d
unit tests: amounts_tests restored, renamed 2022-09-29 21:49:57 +02:00
cryptozoidberg
26b9d60dba
merge from zarcanum 2022-09-29 19:21:07 +02:00
cryptozoidberg
7d8259f58c
added code for handling chain detachment(reorg) 2022-09-29 19:18:05 +02:00
cryptozoidberg
1fd6e08e5c
initial code for introducing asset descriptor for wallet 2022-09-28 22:06:07 +02:00
sowle
369b40b7a0
coretests: fixes and improvements for zarcanum_test 2022-09-28 03:46:20 +02:00
sowle
b669401332
1) balance proof and explicit fee for post-HF4 txs; 2) multiple range proofs verification fixed; 3) zarcanum_outs_range_proof -> zc_outs_range_proof 2022-09-28 03:45:10 +02:00
cryptozoidberg
a718895fd7
Asset id context in wallet: basic implementations 2022-09-27 20:13:49 +02:00
sowle
5d349a963d
1) construct_miner_tx now supports post-HF4 PoW 2) new HF4 core rules: at least 2 outputs for each tx; tx.version > 1 2022-09-27 03:06:10 +02:00
cryptozoidberg
43c0c7944d
inital code for submiting asset descriptor 2022-09-26 21:57:24 +02:00
cryptozoidberg
213cb4f85c
implemented proper versioning for binary serialization 2022-09-23 23:19:44 +02:00
sowle
078440a815
zarcanum WIP (use standard derivation to scalar conversion to simplify things) + minor 2022-09-23 22:18:22 +02:00
sowle
0bfe224b66
minor fixes 2022-09-23 18:45:59 +02:00
sowle
7d57e8a993
coretests: chaingen PoS refactored, mining outside-of-wallet2 eliminated, code unified 2022-09-23 18:45:22 +02:00
cryptozoidberg
e70efc898c
Merge branch 'multiassets' into zarcanum 2022-09-22 19:30:02 +02:00
cryptozoidberg
2ba139ebaf
fixed wrong variant type 2022-09-22 19:29:18 +02:00
cryptozoidberg
1aa6a37b08
compilation errors fixed for wallet.cpp 2022-09-21 22:35:24 +02:00
cryptozoidberg
d573dd53fd
assigning asset id from tx 2022-09-21 14:50:29 +02:00
cryptozoidberg
7c4d8a41e8
massive changes over adding asset id to primary operations to wallet 2022-09-20 22:01:52 +02:00
cryptozoidberg
ff0d32fa20
transfer refactoring - inital code 2022-09-17 22:52:26 +02:00
cryptozoidberg
b7767e41d5
Merge branch 'multiassets' into zarcanum 2022-09-16 18:52:50 +02:00
cryptozoidberg
1c76d0d325
added balance() and rpc api implementations for multi_assets versions 2022-09-16 18:35:36 +02:00
cryptozoidberg
65eea67b30
Merge branch 'zarcanum' into multiassets 2022-09-16 14:54:44 +02:00
sowle
d01ab52c7c
coretests: some HF1 tests marked as postponed 2022-09-15 23:21:02 +02:00
cryptozoidberg
8f15d60677
basic implementations over multi assets in wallet 2022-09-15 22:05:10 +02:00
sowle
76807ec931
coretests: typo fixed 2022-09-15 20:26:54 +02:00
sowle
2aa62f43bb
coretests: getting rid of set_pos_to_low_timestamp; postponed tests not running 2022-09-15 19:41:46 +02:00
sowle
ece5038130
wallet: build_minted_block adoptation (zarcanum wip) 2022-09-14 22:50:43 +02:00
sowle
0d882868c8
chaingen: postponed test can be run with --run-single-test, also print 'em all 2022-09-14 22:48:42 +02:00
cryptozoidberg
91e8b2ba6f
fixed compilation for unit_tests 2022-09-14 22:08:21 +02:00
cryptozoidberg
f3f5c11c5e
fixed missing dependency(linux) - afterfix 2022-09-14 20:59:27 +02:00
cryptozoidberg
eec541840e
fixed missing dependency(linux) 2022-09-14 20:56:34 +02:00
cryptozoidberg
7abd438787
replaced optional<> to shared_ptr<> due to space efficiency considerations 2022-09-14 20:54:30 +02:00
sowle
be1db1b4cb
zarcanum_basic_test marked as postponed for a while 2022-09-13 22:29:37 +02:00
sowle
af9c53794e
1) zarcanum math moved to separate file; 2) fixed an error in rhs calculation; 3) 2^64 constant + test 2022-09-13 22:08:46 +02:00
cryptozoidberg
c2771a075e
added test against post-zarcanum era 2022-09-13 16:42:32 +02:00
cryptozoidberg
03480488a1
Implemented kv-serialization for boost optional, implemented serialization as hed for POD 2022-09-12 20:38:32 +02:00
sowle
e9c3c7841f
wallet: Zarcanum PoS mining itself is implemented in wallet2 2022-09-12 18:47:38 +02:00
cryptozoidberg
634e777cfd
fixed compilation issues on linux 2022-09-09 20:21:27 +02:00
sowle
41308d86a6
wallet: pos code clean up (mining_context, etc) 2022-09-09 20:16:14 +02:00
sowle
c7bc50f968
validate_pos_block refactoring 2022-09-08 22:49:36 +02:00
sowle
6991fa8ea9
wallet: get_pos_entries g_index initialization fixed 2022-09-08 22:47:32 +02:00
sowle
2c5c0ddc75
Merge branch 'zarcanum_mint' into zarcanum 2022-09-08 16:35:38 +02:00