forked from lthn/blockchain
fixed multi-line comment warnings
This commit is contained in:
parent
77c7e9b0ce
commit
179b41cabb
3 changed files with 13 additions and 13 deletions
|
|
@ -435,7 +435,7 @@ bool chain_switching_when_gindex_spent_in_both_chains::generate(std::vector<test
|
|||
// 0 1 11 12 13 14 < height
|
||||
// (0 )- (1 )...(1r)- (2 )- (3 )- < main chain
|
||||
// ^ \ tx_1 < txs
|
||||
// | \
|
||||
// | \
|
||||
// | \-(2a)- (3a)- (4a)- < alt chain
|
||||
// + tx_1 < txs
|
||||
|
||||
|
|
@ -471,7 +471,7 @@ bool alt_chain_coins_pow_mined_then_spent::generate(std::vector<test_event_entry
|
|||
|
||||
// 0 1 2 12 13
|
||||
// (0 )- (1 )- . . . (1r)-
|
||||
// \
|
||||
// \
|
||||
// \- (2a)...(2ra)- (3a)-
|
||||
// |
|
||||
// +-------------tx_1 tx_1 spents 2a.miner_tx output
|
||||
|
|
@ -540,7 +540,7 @@ bool alt_blocks_validation_and_same_new_amount_in_two_txs::generate(std::vector<
|
|||
|
||||
// 0 1 11 12 13
|
||||
// (0 )- (1 )-...(1r)- (2 )- (3 )-
|
||||
// \
|
||||
// \
|
||||
// \- (2a)- (3a)-
|
||||
// tx_1
|
||||
// tx_2
|
||||
|
|
@ -573,7 +573,7 @@ bool alt_blocks_with_the_same_txs::generate(std::vector<test_event_entry>& event
|
|||
// 0 1 11 12 13 14
|
||||
// (0 )- (1 )-...(1r)- (2 )- (3 )-
|
||||
// \ tx_0
|
||||
// \
|
||||
// \
|
||||
// \- (2a)- (3a)- (4 )-
|
||||
// tx_0
|
||||
|
||||
|
|
|
|||
|
|
@ -923,7 +923,7 @@ bool pos_altblocks_validation::generate(std::vector<test_event_entry>& events) c
|
|||
// +-----------------------+
|
||||
// | tx_0 tx_0 spends all outputs in blk_1 (main chain)
|
||||
// (0 )- (1 )-...(1r)- (2 )- (3 )-...(3r)- (4 )- (5 )- <- main chain
|
||||
// | \
|
||||
// | \
|
||||
// | \- (2a)- <- alt chain
|
||||
// +--------------+ PoS block 2a uses stake already spent in main chain
|
||||
|
||||
|
|
@ -941,7 +941,7 @@ bool pos_altblocks_validation::generate(std::vector<test_event_entry>& events) c
|
|||
// +-----------------------+
|
||||
// | tx_0 tx_0 spends all outputs in blk_1 (main chain)
|
||||
// (0 )- (1 )-...(1r)- (2 )- (3 )-...(3r)- (4 )- (5 )- <- main chain
|
||||
// || \
|
||||
// || \
|
||||
// || \- (2a)- #3a#- <- alt chain
|
||||
// |+--------------+ | PoS block 2a uses stake already spent in main chain (okay)
|
||||
// +-----------------------+ PoS block 3a uses stake already spent in current alt chain (fail)
|
||||
|
|
@ -962,11 +962,11 @@ bool pos_altblocks_validation::generate(std::vector<test_event_entry>& events) c
|
|||
// +-----------------------+
|
||||
// | tx_0 tx_0 spends all outputs in blk_1 (main chain)
|
||||
// (0 )- (1 )-...(1r)- (2 )- (3 )- ........ (3r)- (4 )- (5 )- <- main chain
|
||||
// || \
|
||||
// || \
|
||||
// || \- (2a)- #3a#- <- alt chain
|
||||
// |+--------------+ \ | PoS block 2a uses stake already spent in main chain (okay)
|
||||
// +---------------|-------+ PoS block 3a uses stake already spent in current alt chain (fail)
|
||||
// | \
|
||||
// | \
|
||||
// | \ ...... (2br)- (3b)- <- alt chain
|
||||
// | |
|
||||
// +-----------------------+ PoS block 3b uses as stake an output, created in current alt chain (2a)
|
||||
|
|
@ -989,7 +989,7 @@ bool pos_altblocks_validation::generate(std::vector<test_event_entry>& events) c
|
|||
// || \- (2a)- #3a#- | <- alt chain
|
||||
// |+--------------+ \ | \ PoS block 2a uses stake already spent in main chain (okay)
|
||||
// +---------------|-------+ \ PoS block 3a uses stake already spent in current alt chain (fail)
|
||||
// | \ \
|
||||
// | \ \
|
||||
// | \ ...... (2br)- (3b)- #4b# <- alt chain
|
||||
// | |
|
||||
// +-----------------------+ PoS block 3b uses as stake an output, created in current alt chain (2a)
|
||||
|
|
|
|||
|
|
@ -1379,7 +1379,7 @@ bool tx_expiration_time_and_chain_switching::generate(std::vector<test_event_ent
|
|||
// 0 ... 20 21 22 23 24 <- height
|
||||
// (0 )- (0r)- (1 )- <- chain A
|
||||
// | tx_1
|
||||
// \
|
||||
// \
|
||||
// \ (1b)- (2b)- <- chain B (became main after 2b)
|
||||
//
|
||||
MAKE_NEXT_BLOCK(events, blk_1b, blk_0r, miner_acc);
|
||||
|
|
@ -1393,7 +1393,7 @@ bool tx_expiration_time_and_chain_switching::generate(std::vector<test_event_ent
|
|||
// 0 ... 20 21 22 23 24 <- height
|
||||
// (0 )- (0r)- (1 )- <- chain A
|
||||
// | tx_1
|
||||
// \
|
||||
// \
|
||||
// \ (1b)- (2b)- !3b!- <- chain B, block 3b is rejected because tx_1 is already expired
|
||||
// tx_1
|
||||
|
||||
|
|
@ -1411,7 +1411,7 @@ bool tx_expiration_time_and_chain_switching::generate(std::vector<test_event_ent
|
|||
// 0 ... 20 21 22 23 24 <- height
|
||||
// (0 )- (0r)- (1 )- <- chain A
|
||||
// | tx_1
|
||||
// |\
|
||||
// |\
|
||||
// | \ (1b)- (2b)- <- chain B
|
||||
// |
|
||||
// \- (1c)- (2c)- (3c)- <- chain C
|
||||
|
|
@ -1432,7 +1432,7 @@ bool tx_expiration_time_and_chain_switching::generate(std::vector<test_event_ent
|
|||
// 0 ... 20 21 22 23 24 <- height
|
||||
// (0 )- (0r)- (1 )- <- chain A
|
||||
// | tx_1
|
||||
// |\
|
||||
// |\
|
||||
// | \ (1b)- (2b)- (3b)- (4b)- <- chain B
|
||||
// |
|
||||
// \- (1c)- (2c)- (3c)- <- chain C
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue