From 15832284a5c37d249b59183c99ce60baa6e14c28 Mon Sep 17 00:00:00 2001 From: Weixie Cui Date: Fri, 15 May 2026 12:01:08 +0800 Subject: [PATCH] eth/protocols/snap: fix error message --- eth/protocols/snap/handlers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eth/protocols/snap/handlers.go b/eth/protocols/snap/handlers.go index 5a5733bdb4..89c6c52f7f 100644 --- a/eth/protocols/snap/handlers.go +++ b/eth/protocols/snap/handlers.go @@ -308,11 +308,11 @@ func handleStorageRanges(backend Backend, msg Decoder, peer *Peer) error { // Decode. slotLists, err := res.Slots.Items() if err != nil { - return fmt.Errorf("AccountRange: invalid accounts list: %v", err) + return fmt.Errorf("StorageRanges: invalid storages list: %v", err) } proof, err := res.Proof.Items() if err != nil { - return fmt.Errorf("AccountRange: invalid proof: %v", err) + return fmt.Errorf("StorageRanges: invalid proof: %v", err) } // Ensure the ranges are monotonically increasing