diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-12-24 16:12:03 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-12-24 16:12:03 +0000 |
commit | 6c868595b7898ab66919919e260f37155fcf0f99 (patch) | |
tree | a9c640ea7690eb8685d620f3031ce9534c2dc433 /tests/unit_tests/hardfork.cpp | |
parent | unit_tests: new test for IP blocking (diff) | |
download | monero-6c868595b7898ab66919919e260f37155fcf0f99.tar.xz |
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.
Diffstat (limited to '')
-rw-r--r-- | tests/unit_tests/hardfork.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unit_tests/hardfork.cpp b/tests/unit_tests/hardfork.cpp index e59d4c590..82b1a33ff 100644 --- a/tests/unit_tests/hardfork.cpp +++ b/tests/unit_tests/hardfork.cpp @@ -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) \ |