eth/protocols/snap: fix error message (#34976)
Some checks are pending
/ Linux Build (push) Waiting to run
/ Linux Build (arm) (push) Waiting to run
/ Keeper Build (push) Waiting to run
/ Windows Build (push) Waiting to run
/ Docker Image (push) Waiting to run

This commit is contained in:
cui 2026-05-26 20:45:14 +08:00 committed by GitHub
parent 5933fa4bbf
commit 622cef2d06
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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