Skip to content

Commit

Permalink
Fix bug due to there being a consistency check buried in Verify
Browse files Browse the repository at this point in the history
  • Loading branch information
ValarDragon committed Aug 19, 2024
1 parent 23fb7d6 commit ba73c51
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions consensus/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -2015,6 +2015,10 @@ func allowProcessingProposalBlockPart(msg *BlockPartMessage, logger log.Logger,
return false
}

if part.Index >= csBlockParts.Total() {
return false
}

if csBlockParts.IsCompleteMtx() || csBlockParts.GetPart(int(part.Index)) != nil {
return false
}
Expand Down

0 comments on commit ba73c51

Please sign in to comment.