forked from cerc-io/plugeth
053ed9cc84
* 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> |
||
---|---|---|
.. | ||
committer.go | ||
database_test.go | ||
database.go | ||
encoding_test.go | ||
encoding.go | ||
errors.go | ||
hasher.go | ||
iterator_test.go | ||
iterator.go | ||
node_test.go | ||
node.go | ||
proof_test.go | ||
proof.go | ||
secure_trie_test.go | ||
secure_trie.go | ||
stacktrie_test.go | ||
stacktrie.go | ||
sync_bloom.go | ||
sync_test.go | ||
sync.go | ||
trie_test.go | ||
trie.go |