mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00: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
|
@ -206,3 +206,15 @@ struct gen_block_invalid_binary_format : public test_chain_unit_base
|
|||
private:
|
||||
size_t m_corrupt_blocks_begin_idx;
|
||||
};
|
||||
|
||||
struct gen_block_late_v1_coinbase_tx : public gen_block_verification_base<1>
|
||||
{
|
||||
bool generate(std::vector<test_event_entry>& events) const;
|
||||
};
|
||||
template<>
|
||||
struct get_test_options<gen_block_late_v1_coinbase_tx> {
|
||||
const std::pair<uint8_t, uint64_t> hard_forks[3] = {std::make_pair(1, 0), std::make_pair(HF_VERSION_MIN_V2_COINBASE_TX, 1), std::make_pair(0, 0)};
|
||||
const cryptonote::test_options test_options = {
|
||||
hard_forks, 0
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue