go-ethereum/eth/protocols
Mayveskii 5cafd07009 eth/protocols/snap: handle StateReader error in ServiceTrieNodesQuery
When the snapshot is unavailable, ServiceTrieNodesQuery falls
back to triedb.StateReader but discards the error. If
StateReader fails (e.g. state pruned or DB corruption), the
nil reader is passed to trie operations, causing a nil pointer
dereference when serving trie node requests.

Return a proper error instead of silently proceeding with a
nil state reader.
2026-03-26 20:21:58 +03:00
..
eth eth/protocols/eth: drop protocol version eth/68 (#33511) 2026-02-28 21:43:40 +01:00
snap eth/protocols/snap: handle StateReader error in ServiceTrieNodesQuery 2026-03-26 20:21:58 +03:00