Skip to content

Commit

Permalink
Address Nina's comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tholonious committed Jan 24, 2024
1 parent b36b07c commit 982060b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pos_blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 982060b

Please sign in to comment.