include genesis in checkpoint creation
This commit is contained in:
+3
-2
@@ -3127,8 +3127,9 @@ bool SideChain::is_checkpoint_block(const PoolBlock* block) const
|
||||
void SideChain::update_checkpoints(uint64_t new_height)
|
||||
{
|
||||
const uint64_t checkpoint_height = (new_height / CHECKPOINT_INTERVAL) * CHECKPOINT_INTERVAL;
|
||||
|
||||
if (checkpoint_height == 0) return;
|
||||
|
||||
// Skip if this call is from a non-genesis block that doesn't land on an interval boundary
|
||||
if (checkpoint_height == 0 && new_height != 0) return;
|
||||
|
||||
bool checkpoint_created = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user