From 982060b46338717cd7d0f0e0779080462109d41b Mon Sep 17 00:00:00 2001 From: iamsofonias Date: Wed, 24 Jan 2024 18:16:33 -0500 Subject: [PATCH] Address Nina's comment --- lib/pos_blockchain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pos_blockchain.go b/lib/pos_blockchain.go index dc268c225..65792d7d1 100644 --- a/lib/pos_blockchain.go +++ b/lib/pos_blockchain.go @@ -940,7 +940,7 @@ func (bc *Blockchain) isProperlyFormedBlockHeaderPoS(header *MsgDeSoHeader) erro // that this block height is exactly one greater than its parent's block height. func (bc *Blockchain) hasValidBlockHeightPoS(header *MsgDeSoHeader) error { blockHeight := header.Height - if blockHeight < bc.GetFirstPoSBlockHeight() { + if !bc.IsPoSBlockHeight(blockHeight) { return RuleErrorPoSBlockBeforeCutoverHeight } // Validate that the block height is exactly one greater than its parent.