Skip to content

Commit

Permalink
feat(dpos): update illegal votes logic
Browse files Browse the repository at this point in the history
  • Loading branch information
RainFallsSilent committed Jan 23, 2025
1 parent cbceeaf commit 22731b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/transaction/illegalvotetransaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func (t *IllegalVoteTransaction) CheckDPOSIllegalVotes(d *payload.DPOSIllegalVot
return errors.New("should be same sponsor")
}

if t.parameters.BlockHeight <= t.parameters.Config.DPoSConfiguration.ChangeViewV1Height {
if t.parameters.BlockHeight > t.parameters.Config.DPoSConfiguration.ChangeViewV1Height {
if !d.Evidence.Proposal.Hash().IsEqual(d.CompareEvidence.Proposal.Hash()) {
return errors.New("should be same proposal")
}
Expand Down

0 comments on commit 22731b6

Please sign in to comment.