include genesis in checkpoint creation

This commit is contained in:
Matt Hess
2026-02-18 02:09:56 +00:00
parent 6107ca6002
commit 544176c964
+3 -2
View File
@@ -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;