mirror of
https://github.com/monero-project/monero.git
synced 2025-05-06 14:34:57 -04:00
blockchain: forbid v1 coinbase from v12
This commit is contained in:
parent
459beb50d4
commit
26072f1393
6 changed files with 38 additions and 5 deletions
|
@ -640,3 +640,18 @@ bool gen_block_invalid_binary_format::check_all_blocks_purged(cryptonote::core&
|
|||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool gen_block_late_v1_coinbase_tx::generate(std::vector<test_event_entry>& events) const
|
||||
{
|
||||
BLOCK_VALIDATION_INIT_GENERATE();
|
||||
|
||||
block blk_1;
|
||||
generator.construct_block_manually(blk_1, blk_0, miner_account,
|
||||
test_generator::bf_major_ver | test_generator::bf_minor_ver,
|
||||
HF_VERSION_MIN_V2_COINBASE_TX, HF_VERSION_MIN_V2_COINBASE_TX);
|
||||
events.push_back(blk_1);
|
||||
|
||||
DO_CALLBACK(events, "check_block_purged");
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue