aboutsummaryrefslogtreecommitdiff
path: root/tests/core_tests/block_validation.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-05-24 22:41:39 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-08-19 16:43:52 +0000
commit26072f1393f869b08ba279a3fb5b5e319d90b2ca (patch)
tree04d8f7af271039bee7741d66dde0d303fda3e448 /tests/core_tests/block_validation.cpp
parentMerge pull request #5685 (diff)
downloadmonero-26072f1393f869b08ba279a3fb5b5e319d90b2ca.tar.xz
blockchain: forbid v1 coinbase from v12
Diffstat (limited to 'tests/core_tests/block_validation.cpp')
-rw-r--r--tests/core_tests/block_validation.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/core_tests/block_validation.cpp b/tests/core_tests/block_validation.cpp
index 566ec1440..55312bc15 100644
--- a/tests/core_tests/block_validation.cpp
+++ b/tests/core_tests/block_validation.cpp
@@ -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;
+}