From 902f2ee0a134c72251427ff41c73a877951ee392 Mon Sep 17 00:00:00 2001 From: Tsahi Zidenberg Date: Mon, 10 Jul 2023 10:25:24 -0600 Subject: [PATCH] block_validator: add missing error check --- staker/block_validator.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/staker/block_validator.go b/staker/block_validator.go index 75f9fa7815..9096324cff 100644 --- a/staker/block_validator.go +++ b/staker/block_validator.go @@ -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 }