From ae8db896f581d9200a05c420fef48fd6fc733c67 Mon Sep 17 00:00:00 2001 From: Hyunsoo Shin Date: Tue, 31 Dec 2024 11:32:46 +0900 Subject: [PATCH] [Engine] Added error check --- consensus/istanbul/backend/engine.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/consensus/istanbul/backend/engine.go b/consensus/istanbul/backend/engine.go index 5a94afac9..0d698b5f1 100644 --- a/consensus/istanbul/backend/engine.go +++ b/consensus/istanbul/backend/engine.go @@ -329,6 +329,9 @@ func (sb *backend) verifySigner(chain consensus.ChainReader, header *types.Heade // Retrieve the snapshot needed to verify this header and cache it valSet, err := sb.GetValidatorSet(number) + if err != nil { + return err + } // resolve the authorization key and check against signers signer, err := ecrecover(header)