Skip to content

Commit cd5651b

Browse files
authored
Merge pull request #6549 from oasisprotocol/peternose/bugfix/evidence-round
go/consensus/cometbft/apps/roothash: Fix evidence removal round check
2 parents 9817941 + 0f9339e commit cd5651b

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.changelog/6549.bugfix.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
go/consensus/cometbft/apps/roothash: Fix evidence removal round check

go/consensus/cometbft/apps/roothash/state/state.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ func (s *MutableState) RemoveExpiredEvidence(ctx context.Context, runtimeID comm
547547
if rtID != hID {
548548
break
549549
}
550-
if round > minRound {
550+
if round >= minRound {
551551
break
552552
}
553553
toDelete = append(toDelete, it.Key())

0 commit comments

Comments
 (0)