unit_tests: fix hard fork tests

A couple stopped passing when the hard fork code was made
to reject incoming hard fork versions it did not know about.
This commit is contained in:
moneromooo-monero 2015-12-24 16:12:03 +00:00
parent 8b0200adf8
commit 6c868595b7
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
1 changed files with 2 additions and 1 deletions

View File

@ -210,7 +210,7 @@ TEST(steps_asap, Success)
hf.init();
for (uint64_t h = 0; h < 10; ++h) {
db.add_block(mkblock(10), 0, 0, 0, crypto::hash());
db.add_block(mkblock(9), 0, 0, 0, crypto::hash());
ASSERT_TRUE(hf.add(db.get_block_from_height(h), h));
}
@ -450,6 +450,7 @@ TEST(reorganize, changed)
ASSERT_TRUE(hf.add_fork(1, 0, 0));
ASSERT_TRUE(hf.add_fork(2, 2, 1));
ASSERT_TRUE(hf.add_fork(3, 5, 2));
ASSERT_TRUE(hf.add_fork(4, 555, 222));
hf.init();
#define ADD(v, h, a) \