go-ethereum/core/state/snapshot
Mayveskii 56c00211a8 core/state/snapshot: handle bloom filter errors in rebloom
The diffLayer.rebloom method silently discards errors from both
bloomfilter.New and parent.diffed.Copy. If either fails
(e.g. due to memory pressure or corrupted parent bloom),
dl.diffed remains nil, which causes a nil pointer dereference
in subsequent snapshot lookups via accountBloomHash.

Handle errors explicitly: fall back to a fresh bloom on copy
failure, and return early on allocation failure with a logged
error.
2026-03-26 20:24:41 +03:00
..
context.go all: get rid of custom MaxUint64 and MaxUint64 (#30636) 2024-10-20 14:41:51 +03:00
conversion.go all: improve ETA calculation across all progress indicators (#32521) 2025-09-01 13:47:02 +08:00
difflayer.go core/state/snapshot: handle bloom filter errors in rebloom 2026-03-26 20:24:41 +03:00
difflayer_test.go core/state/snapshot: fix storageList memory accounting (#33505) 2025-12-31 09:40:43 +08:00
disklayer.go core, triedb: remove destruct flag in state snapshot (#30752) 2024-11-22 16:55:43 +08:00
disklayer_test.go core, triedb: remove destruct flag in state snapshot (#30752) 2024-11-22 16:55:43 +08:00
generate.go core, trie, triedb: minor changes from snapshot integration (#30599) 2024-10-18 17:06:31 +02:00
generate_test.go crypto/keccak: vendor in golang.org/x/crypto/sha3 (#33323) 2026-02-03 14:55:27 -07:00
holdable_iterator.go all: update license headers and AUTHORS from git history (#24947) 2022-05-24 20:39:40 +02:00
holdable_iterator_test.go all: update license headers and AUTHORS from git history (#24947) 2022-05-24 20:39:40 +02:00
iterator.go core, triedb: remove destruct flag in state snapshot (#30752) 2024-11-22 16:55:43 +08:00
iterator_binary.go core, triedb: remove destruct flag in state snapshot (#30752) 2024-11-22 16:55:43 +08:00
iterator_fast.go all: use cmp.Compare (#30958) 2025-01-02 14:06:47 +01:00
iterator_test.go core/state: using testing.B.Loop (#32658) 2025-09-19 16:57:43 -06:00
journal.go all: replace fmt.Errorf with errors.New (#32286) 2025-07-28 10:13:18 +02:00
metrics.go all: fix spelling mistakes (#25961) 2022-10-11 09:37:00 +02:00
snapshot.go core/state/snapshot: handle legacy journal (#30802) 2024-11-28 11:21:31 +08:00
snapshot_test.go core, triedb: remove destruct flag in state snapshot (#30752) 2024-11-22 16:55:43 +08:00
utils.go core, triedb: remove destruct flag in state snapshot (#30752) 2024-11-22 16:55:43 +08:00