tests: use 255 as a "too high" block version

While the original cryptonote accepted only the current major
version, we can accept higher ones.
This commit is contained in:
moneromooo-monero 2015-12-25 22:22:12 +00:00
parent f33a88cfc1
commit 2358d0d5be
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
1 changed files with 2 additions and 2 deletions

View File

@ -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");