From 28a7f0b97271ae63625270d8e28b5b3ba8e3eb10 Mon Sep 17 00:00:00 2001 From: Krish Date: Tue, 22 Oct 2024 10:03:21 +0800 Subject: [PATCH] fix --- core/blockchain_reader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/blockchain_reader.go b/core/blockchain_reader.go index c2374f14b7..c34ede8286 100644 --- a/core/blockchain_reader.go +++ b/core/blockchain_reader.go @@ -374,7 +374,7 @@ func (bc *BlockChain) StateAt(root common.Hash) (*state.StateDB, error) { // Instead of that, it will be more useful to return an error to indicate // the state is not available. if stateDb.NoTrie() && stateDb.GetSnap() == nil { - return nil, errors.New("state is not available") + return stateDb, errors.New("state is not available") } return stateDb, err