|
|
|
@ -49,7 +49,7 @@ TEST(checkpoints_is_alternative_block_allowed, handles_empty_checkpoints)
|
|
|
|
|
TEST(checkpoints_is_alternative_block_allowed, handles_one_checkpoint)
|
|
|
|
|
{
|
|
|
|
|
checkpoints cp;
|
|
|
|
|
cp.add_checkpoint(5, "0000000000000000000000000000000000000000000000000000000000000000");
|
|
|
|
|
ASSERT_TRUE(cp.add_checkpoint(5, "0000000000000000000000000000000000000000000000000000000000000000"));
|
|
|
|
|
|
|
|
|
|
ASSERT_FALSE(cp.is_alternative_block_allowed(0, 0));
|
|
|
|
|
|
|
|
|
@ -87,8 +87,8 @@ TEST(checkpoints_is_alternative_block_allowed, handles_one_checkpoint)
|
|
|
|
|
TEST(checkpoints_is_alternative_block_allowed, handles_two_and_more_checkpoints)
|
|
|
|
|
{
|
|
|
|
|
checkpoints cp;
|
|
|
|
|
cp.add_checkpoint(5, "0000000000000000000000000000000000000000000000000000000000000000");
|
|
|
|
|
cp.add_checkpoint(9, "0000000000000000000000000000000000000000000000000000000000000000");
|
|
|
|
|
ASSERT_TRUE(cp.add_checkpoint(5, "0000000000000000000000000000000000000000000000000000000000000000"));
|
|
|
|
|
ASSERT_TRUE(cp.add_checkpoint(9, "0000000000000000000000000000000000000000000000000000000000000000"));
|
|
|
|
|
|
|
|
|
|
ASSERT_FALSE(cp.is_alternative_block_allowed(0, 0));
|
|
|
|
|
|
|
|
|
|