From 1bfb8f0a66931b69f715fae91aa7adc768b00660 Mon Sep 17 00:00:00 2001 From: crStiv Date: Fri, 7 Feb 2025 17:21:54 +0100 Subject: [PATCH] Update reader.go --- triedb/pathdb/reader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/triedb/pathdb/reader.go b/triedb/pathdb/reader.go index 30f75d1058..f1ab445238 100644 --- a/triedb/pathdb/reader.go +++ b/triedb/pathdb/reader.go @@ -114,7 +114,7 @@ func (r *reader) Account(hash common.Hash) (*types.SlimAccount, error) { } account := new(types.SlimAccount) if err := rlp.DecodeBytes(blob, account); err != nil { - panic(err) + return nil, fmt.Errorf("failed to decode account: %w", err) } return account, nil }