32 #include "gtest/gtest.h" 39 TEST(checkpoints_is_alternative_block_allowed, handles_empty_checkpoints)
50 TEST(checkpoints_is_alternative_block_allowed, handles_one_checkpoint)
88 TEST(checkpoints_is_alternative_block_allowed, handles_two_and_more_checkpoints)
bool add_checkpoint(uint64_t height, const std::string &hash_str)
adds a checkpoint to the container
bool is_alternative_block_allowed(uint64_t blockchain_height, uint64_t block_height) const
checks if alternate chain blocks should be kept for a given height
TEST(checkpoints_is_alternative_block_allowed, handles_empty_checkpoints)
#define ASSERT_FALSE(condition)
Holds cryptonote related classes and helpers.
#define ASSERT_TRUE(condition)
A container for blockchain checkpoints.