go-ethereum/trie
HAOYUatHZ 760f234a1a
trie: fix two issues in trie iterator (#24539) (#778)
* trie: fix two issues in trie iterator (#24539)

* trie: fix memory leak in trie iterator

In the trie iterator, live nodes are tracked in a stack while iterating.
Popped node states should be explictly set to nil in order to get
garbage-collected.

* trie: fix empty trie iterator

* fix lint

* chore: auto version bump [bot]

---------

Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
Co-authored-by: HAOYUatHZ <HAOYUatHZ@users.noreply.github.com>
2024-05-28 22:07:38 +08:00
..
zkproof feat: upgrade zktrie to v0.6.0 (#403) 2023-08-02 10:54:41 +08:00
committer.go Add goimports lint (#54) 2022-03-24 16:53:59 +08:00
database.go core, trie, eth, cmd: rework preimage store (#205) 2023-02-10 15:26:57 +08:00
database_test.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
database_types.go zktrie part2: add zktrie; allow switch trie type by config; (#113) 2022-06-27 11:17:02 +08:00
encoding.go trie: use stacktrie for Derivesha operation (#21407) 2020-09-29 17:38:13 +02:00
encoding_test.go trie: use stacktrie for Derivesha operation (#21407) 2020-09-29 17:38:13 +02:00
errors.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
hasher.go Add goimports lint (#54) 2022-03-24 16:53:59 +08:00
iterator.go trie: fix two issues in trie iterator (#24539) (#778) 2024-05-28 22:07:38 +08:00
iterator_test.go trie: fix two issues in trie iterator (#24539) (#778) 2024-05-28 22:07:38 +08:00
node.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
node_test.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
preimages.go core, trie, eth, cmd: rework preimage store (#205) 2023-02-10 15:26:57 +08:00
proof.go style: revert some formatting (#294) 2023-04-20 17:49:35 +08:00
proof_test.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
secure_trie.go core, trie, eth, cmd: rework preimage store (#205) 2023-02-10 15:26:57 +08:00
secure_trie_test.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
stacktrie.go style: revert some formatting (#294) 2023-04-20 17:49:35 +08:00
stacktrie_test.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
sync.go feat: dual code hash (#188) 2023-02-08 16:12:41 -08:00
sync_bloom.go Add goimports lint (#54) 2022-03-24 16:53:59 +08:00
sync_test.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
trie.go trie: fix two issues in trie iterator (#24539) (#778) 2024-05-28 22:07:38 +08:00
trie_test.go feat: dual code hash (#188) 2023-02-08 16:12:41 -08:00
zk_trie.go docs(zktrie): remove an outdated comment (#765) 2024-05-23 15:59:35 +02:00
zk_trie_database.go fix(zktrie): fix NewZktrieDatabase (#638) 2024-03-27 14:05:30 +08:00
zk_trie_database_test.go feat&perf: reversed bit of key when persisting zktrie (#410) 2023-07-31 16:13:12 +08:00
zk_trie_impl_test.go test(zkTrie): add deletion test in account update unit test (#344) 2023-05-25 16:30:50 +08:00
zk_trie_proof_test.go feat(zktrie): upgrade to 0.8.2 (#715) 2024-04-24 11:31:56 +08:00
zk_trie_test.go fix(zktrie): copy trie properly for concurrent access (#747) 2024-05-13 15:57:14 +03:00
zktrie_deletionproof.go feat(zktrie): upgrade to 0.8.2 (#715) 2024-04-24 11:31:56 +08:00