plugeth/trie
gary rong 053ed9cc84
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>
2020-09-30 13:45:56 +02:00
..
committer.go trie: polishes to trie committer (#21351) 2020-09-30 13:45:56 +02:00
database_test.go trie: there's no point in retrieving the metaroot 2019-04-05 13:09:28 +03:00
database.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
encoding.go trie: use stacktrie for Derivesha operation (#21407) 2020-09-29 17:38:13 +02:00
errors.go trie: more node iterator improvements (#14615) 2017-06-20 18:26:09 +02:00
hasher.go trie: polishes to trie committer (#21351) 2020-09-30 13:45:56 +02:00
iterator_test.go les: historical data garbage collection (#19570) 2020-07-13 11:02:54 +02:00
iterator.go trie: make hasher parallel when number of changes are large (#20488) 2020-02-04 14:02:38 +02:00
node_test.go add node.go unit test file node_test.go (#20028) 2020-01-07 10:31:20 +01:00
node.go cmd, core, eth, trie: get rid of trie cache generations (#19262) 2019-03-14 15:25:12 +02:00
proof_test.go trie: extend range proof (#21250) 2020-09-23 12:44:09 +03:00
proof.go trie: extend range proof (#21250) 2020-09-23 12:44:09 +03:00
secure_trie_test.go cmd, core, eth, trie: get rid of trie cache generations (#19262) 2019-03-14 15:25:12 +02:00
secure_trie.go core, eth, trie: prepare trie sync for path based operation 2020-09-02 13:21:32 +03:00
stacktrie_test.go trie: use stacktrie for Derivesha operation (#21407) 2020-09-29 17:38:13 +02:00
stacktrie.go trie: use stacktrie for Derivesha operation (#21407) 2020-09-29 17:38:13 +02:00
sync_bloom.go core, eth, les, trie: add a prefix to contract code (#21080) 2020-08-21 15:10:40 +03:00
sync_test.go core, eth, trie: prepare trie sync for path based operation 2020-09-02 13:21:32 +03:00
sync.go core, eth, trie: prepare trie sync for path based operation 2020-09-02 13:21:32 +03:00
trie_test.go trie: polishes to trie committer (#21351) 2020-09-30 13:45:56 +02:00
trie.go trie: polishes to trie committer (#21351) 2020-09-30 13:45:56 +02:00