mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 03:13:28 +01:00
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:
parent
8b0200adf8
commit
6c868595b7
@ -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) \
|
||||
|
Loading…
Reference in New Issue
Block a user