go-ethereum/trie
gary rong 9da3ae1075 trie: polishes to trie committer (#21351)
* trie: update tests to check commit integrity

* trie: polish committer

* trie: fix typo

* trie: remove hasvalue notion

According to the benchmarks, type assertion between the pointer and
interface is extremely fast.

BenchmarkIntmethod-12           1000000000               1.91 ns/op
BenchmarkInterface-12           1000000000               2.13 ns/op
BenchmarkTypeSwitch-12          1000000000               1.81 ns/op
BenchmarkTypeAssertion-12       2000000000               1.78 ns/op

So the overhead for asserting whether the shortnode has "valuenode"
child is super tiny. No necessary to have another field.

* trie: linter nitpicks

Co-authored-by: Martin Holst Swende <martin@swende.se>
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: Derivesha with stacktrie (#21407) 2025-04-07 16:44:32 +08:00
stacktrie_test.go trie: Derivesha with stacktrie (#21407) 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: Derivesha with stacktrie (#21407) 2025-04-07 16:44:32 +08:00