go-ethereum/trie
Martin Holst Swende a8bd860e2f trie: make stacktrie not mutate input values (#22673)
The stacktrie is a bit un-untuitive, API-wise: since it mutates input values.
Such behaviour is dangerous, and easy to get wrong if the calling code 'forgets' this quirk. The behaviour is fixed by this PR, so that the input values are not modified by the stacktrie.

Note: just as with the Trie, the stacktrie still references the live input objects, so it's still _not_ safe to mutate the values form the callsite.
2025-04-07 16:44:32 +08:00
..
committer.go trie: polishes to trie committer (#21351) 2025-04-07 16:44:32 +08:00
database.go trie: Derivesha with stacktrie (#21407) 2025-04-07 16:44:32 +08:00
database_test.go new EVM Upgrade 2021-09-21 16:53:46 +05:30
encoding.go trie: Derivesha with stacktrie (#21407) 2025-04-07 16:44:32 +08:00
encoding_test.go trie: Derivesha with stacktrie (#21407) 2025-04-07 16:44:32 +08:00
errors.go new EVM Upgrade 2021-09-21 16:53:46 +05:30
hasher.go trie: polishes to trie committer (#21351) 2025-04-07 16:44:32 +08:00
iterator.go cmd, trie: remove cmd/gc and hide some types in trie 2025-04-01 16:34:35 +08:00
iterator_test.go all: new empty trie with types.EmptyRootHash instead of null (#27230) 2025-02-07 13:04:45 +08:00
node.go cmd, trie: remove cmd/gc and hide some types in trie 2025-04-01 16:34:35 +08:00
node_test.go new EVM Upgrade 2021-09-21 16:53:46 +05:30
proof.go cmd, trie: remove cmd/gc and hide some types in trie 2025-04-01 16:34:35 +08:00
proof_test.go new EVM Upgrade 2021-09-21 16:53:46 +05:30
secure_trie.go core, eth, trie: add a prefix to contract code (21080) 2025-03-24 22:31:03 +08:00
secure_trie_test.go new EVM Upgrade 2021-09-21 16:53:46 +05:30
stacktrie.go trie: make stacktrie not mutate input values (#22673) 2025-04-07 16:44:32 +08:00
stacktrie_test.go trie: make stacktrie not mutate input values (#22673) 2025-04-07 16:44:32 +08:00
sync.go cmd, trie: remove cmd/gc and hide some types in trie 2025-04-01 16:34:35 +08:00
sync_bloom.go core, eth, trie: add a prefix to contract code (21080) 2025-03-24 22:31:03 +08:00
sync_test.go core, eth, trie: add a prefix to contract code (21080) 2025-03-24 22:31:03 +08:00
trie.go trie: polishes to trie committer (#21351) 2025-04-07 16:44:32 +08:00
trie_test.go trie: stacktrie fixes (#21799) 2025-04-07 16:44:32 +08:00