trie: use stacktrie for Derivesha operation (#21407)
core/types: use stacktrie for derivesha trie: add stacktrie file trie: fix linter core/types: use stacktrie for derivesha rebased: adapt stacktrie to the newer version of DeriveSha Co-authored-by:Martin Holst Swende <martin@swende.se> More linter fixes review feedback: no key offset for nodes converted to hashes trie: use EncodeRLP for full nodes core/types: insert txs in order in derivesha trie: tests for derivesha with stacktrie trie: make stacktrie use pooled hashers trie: make stacktrie reuse tmp slice space trie: minor polishes on stacktrie trie/stacktrie: less rlp dancing core/types: explain the contorsions in DeriveSha ci: fix goimport errors trie: clear mem on subtrie hashing squashme: linter fix stracktrie: use pooling, less allocs (#3) trie: in-place hex prefix, reduce allocs and add rawNode.EncodeRLP Reintroduce the `[]node` method, add the missing `EncodeRLP` implementation for `rawNode` and calculate the hex prefix in place. Co-authored-by:
Martin Holst Swende <martin@swende.se> Co-authored-by:
Martin Holst Swende <martin@swende.se>
Showing
- core/block_validator.go 2 additions, 2 deletionscore/block_validator.go
- core/types/derive_sha.go 16 additions, 2 deletionscore/types/derive_sha.go
- eth/downloader/queue.go 2 additions, 2 deletionseth/downloader/queue.go
- eth/handler.go 1 addition, 1 deletioneth/handler.go
- trie/database.go 6 additions, 1 deletiontrie/database.go
- trie/encoding.go 29 additions, 0 deletionstrie/encoding.go
- trie/encoding_test.go 36 additions, 0 deletionstrie/encoding_test.go
- trie/stacktrie.go 404 additions, 0 deletionstrie/stacktrie.go
- trie/stacktrie_test.go 242 additions, 0 deletionstrie/stacktrie_test.go
Loading
Please register or sign in to comment