aboutsummaryrefslogtreecommitdiff
path: root/tests/core_tests/block_validation.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-12-25 22:22:12 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-12-25 22:22:12 +0000
commit2358d0d5be34f8dca0c14f94979300ed49e3f29f (patch)
tree8bb47342cc941d15212a628598535e7938412276 /tests/core_tests/block_validation.cpp
parentblockchain: fix a few block addition bugs (diff)
downloadmonero-2358d0d5be34f8dca0c14f94979300ed49e3f29f.tar.xz
tests: use 255 as a "too high" block version
While the original cryptonote accepted only the current major version, we can accept higher ones.
Diffstat (limited to 'tests/core_tests/block_validation.cpp')
-rw-r--r--tests/core_tests/block_validation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/core_tests/block_validation.cpp b/tests/core_tests/block_validation.cpp
index e4242f8fe..8589f07b8 100644
--- a/tests/core_tests/block_validation.cpp
+++ b/tests/core_tests/block_validation.cpp
@@ -79,7 +79,7 @@ bool gen_block_big_major_version::generate(std::vector<test_event_entry>& events
BLOCK_VALIDATION_INIT_GENERATE();
block blk_1;
- generator.construct_block_manually(blk_1, blk_0, miner_account, test_generator::bf_major_ver, CURRENT_BLOCK_MAJOR_VERSION + 1);
+ generator.construct_block_manually(blk_1, blk_0, miner_account, test_generator::bf_major_ver, 255);
events.push_back(blk_1);
DO_CALLBACK(events, "check_block_purged");
@@ -92,7 +92,7 @@ bool gen_block_big_minor_version::generate(std::vector<test_event_entry>& events
BLOCK_VALIDATION_INIT_GENERATE();
block blk_1;
- generator.construct_block_manually(blk_1, blk_0, miner_account, test_generator::bf_minor_ver, 0, CURRENT_BLOCK_MINOR_VERSION + 1);
+ generator.construct_block_manually(blk_1, blk_0, miner_account, test_generator::bf_minor_ver, 0, 255);
events.push_back(blk_1);
DO_CALLBACK(events, "check_block_accepted");