From b36b07ccabbd6a6419bd74cac9861e1ec7f2ef20 Mon Sep 17 00:00:00 2001 From: iamsofonias Date: Wed, 24 Jan 2024 14:02:14 -0500 Subject: [PATCH] More cleanup --- lib/pos_blockchain.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pos_blockchain.go b/lib/pos_blockchain.go index f59395093..dc268c225 100644 --- a/lib/pos_blockchain.go +++ b/lib/pos_blockchain.go @@ -52,7 +52,7 @@ func (bc *Blockchain) ProcessHeaderPoS(header *MsgDeSoHeader) (_isMainChain bool func (bc *Blockchain) processHeaderPoS(header *MsgDeSoHeader) ( _isMainChain bool, _isOrphan bool, _err error, ) { - if header.Height < bc.GetFirstPoSBlockHeight() { + if !bc.IsPoSBlockHeight(header.Height) { return false, false, errors.Errorf( "processHeaderPoS: Header height %d is less than the ProofOfStake2ConsensusCutoverBlockHeight %d", header.Height, bc.GetFirstPoSBlockHeight(), @@ -214,7 +214,7 @@ func (bc *Blockchain) processBlockPoS(block *MsgDeSoBlock, currentView uint64, v _err error, ) { // If the incoming block's height is under the PoS cutover fork height, then we can't process it. Exit early. - if block.Header.Height < bc.GetFirstPoSBlockHeight() { + if !bc.IsPoSBlockHeight(block.Header.Height) { return false, false, nil, errors.Errorf( "processHeaderPoS: Header height %d is less than the ProofOfStake2ConsensusCutoverBlockHeight %d", block.Header.Height, bc.GetFirstPoSBlockHeight(),