plugeth/core/types
Guillaume Ballet 6c8310ebb4
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>
2020-09-29 17:38:13 +02:00
..
block_test.go core, eth, les, trie: add a prefix to contract code (#21080) 2020-08-21 15:10:40 +03:00
block.go core, eth, les, trie: add a prefix to contract code (#21080) 2020-08-21 15:10:40 +03:00
bloom9_test.go core: Simplify bloom9 tests with available convenience method TestBytes 2016-05-22 16:42:46 -07:00
bloom9.go all: simplify s[:] to s where s is a slice (#17673) 2018-09-14 22:07:13 +02:00
derive_sha.go trie: use stacktrie for Derivesha operation (#21407) 2020-09-29 17:38:13 +02:00
gen_header_json.go all: simplify timestamps to uint64 (#19372) 2019-04-02 23:28:48 +03:00
gen_log_json.go ethclient: serialize negative block number as "pending" (#21177) 2020-07-21 10:51:15 +02:00
gen_receipt_json.go core/types: add block location fields to receipt (#17662) 2019-03-27 13:39:25 +01:00
gen_tx_json.go core/types: add block location fields to receipt (#17662) 2019-03-27 13:39:25 +01:00
log_test.go core/types: use gencodec for JSON marshaling code 2017-03-07 12:45:12 +01:00
log.go ethclient: serialize negative block number as "pending" (#21177) 2020-07-21 10:51:15 +02:00
receipt_test.go core/types: fix cummulative gas bug and legacy decoding tests 2019-04-16 09:50:11 +03:00
receipt.go core/types: fix cummulative gas bug and legacy decoding tests 2019-04-16 09:50:11 +03:00
transaction_signing_test.go all: switch gas limits from big.Int to uint64 2018-01-03 14:45:35 +02:00
transaction_signing.go crypto: add SignatureLength constant and use it everywhere (#19996) 2019-08-22 15:14:06 +02:00
transaction_test.go core: API-less transaction time sorting 2020-07-28 17:13:40 +03:00
transaction.go core: API-less transaction time sorting 2020-07-28 17:13:40 +03:00