Skip to content

Commit 78fbcae

Browse files
committed
Fix byzantine validator punishment
1 parent 5bc679c commit 78fbcae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/minter/minter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ func (app *Blockchain) BeginBlock(req abciTypes.RequestBeginBlock) abciTypes.Res
220220

221221
// skip already offline candidates to prevent double punishing
222222
candidate := app.stateDeliver.Candidates.GetCandidateByTendermintAddress(address)
223-
if candidate == nil || candidate.Status == candidates.CandidateStatusOffline {
223+
if candidate == nil || candidate.Status == candidates.CandidateStatusOffline || app.stateDeliver.Validators.GetByTmAddress(address) == nil {
224224
continue
225225
}
226226

0 commit comments

Comments
 (0)