Skip to content

Commit

Permalink
More cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tholonious committed Jan 24, 2024
1 parent a3a12c3 commit b36b07c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pos_blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down Expand Up @@ -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(),
Expand Down

0 comments on commit b36b07c

Please sign in to comment.