Skip to content

Commit

Permalink
block_validator: add missing error check
Browse files Browse the repository at this point in the history
  • Loading branch information
tsahee committed Jul 10, 2023
1 parent 314bd0c commit 902f2ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion staker/block_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,10 @@ func (v *BlockValidator) UpdateLatestStaked(count arbutil.MessageIndex, globalSt
return
}
v.legacyValidInfo = nil
v.writeLastValidated(globalState, nil)
err := v.writeLastValidated(globalState, nil)
if err != nil {
log.Error("error writing last validated", "err", err)
}
return
}

Expand Down

0 comments on commit 902f2ee

Please sign in to comment.