plugeth/core/types
Felix Lange df544350bc
core/types: fix immutability guarantees in Block (#27844)
This change rearranges the accessor methods in block.go and fixes some minor issues with
the copy-on-write logic of block data. Fixed issues:

- Block.WithWithdrawals did not create a shallow copy of the block.

- Block.WithBody copied the header unnecessarily, and did not preserve withdrawals.

However, the bugs did not affect any code in go-ethereum because blocks are *always*
created using NewBlockWithHeader().WithBody().WithWithdrawals()
2023-08-04 14:16:23 +02:00
..
block_test.go internal/blocktest: add package for shared test code (#27270) 2023-07-11 14:57:02 +02:00
block.go core/types: fix immutability guarantees in Block (#27844) 2023-08-04 14:16:23 +02:00
bloom9_test.go all: add whitespace linter (#25312) 2022-07-25 13:14:03 +03:00
bloom9.go core/types: fix typo in comment (#25359) 2022-08-03 16:56:57 +02:00
gen_access_tuple.go core/types: un-ssz blob txs, add json marshalling and tweaks (#27256) 2023-05-12 20:14:29 +03:00
gen_account_rlp.go core/types: faster RLP encoding of Header, StateAcccount, ReceiptForStorage (#24420) 2022-02-18 08:10:26 +01:00
gen_header_json.go core/types: put header fields in correct order (#27791) 2023-07-27 17:15:08 +03:00
gen_header_rlp.go core/types: put header fields in correct order (#27791) 2023-07-27 17:15:08 +03:00
gen_log_json.go core/types: revert removal of legacy receipt support (#23247) 2021-07-22 15:43:51 +02:00
gen_log_rlp.go core/types: faster RLP encoding of Header, StateAcccount, ReceiptForStorage (#24420) 2022-02-18 08:10:26 +01:00
gen_receipt_json.go core/types: fix receipt blob fields marshaling (#27793) 2023-07-28 10:08:38 +03:00
gen_withdrawal_json.go all: implement withdrawals (EIP-4895) (#26484) 2023-01-25 15:32:25 +01:00
gen_withdrawal_rlp.go all: implement withdrawals (EIP-4895) (#26484) 2023-01-25 15:32:25 +01:00
hashes.go all: implement path-based state scheme (#25963) 2023-08-01 15:17:32 +03:00
hashing_test.go all: refactor trie API (#26995) 2023-04-20 06:57:24 -04:00
hashing.go all: refactor trie API (#26995) 2023-04-20 06:57:24 -04:00
log_test.go core,console: replace noarg fmt.Errorf with errors.New (#27332) 2023-05-25 08:24:09 -04:00
log.go core: drop legacy receipt types (#26225) 2022-12-03 21:42:11 +01:00
receipt_test.go all: rename dataGas to blobGas (#27789) 2023-07-27 16:53:28 +03:00
receipt.go core/types: fix receipt blob fields marshaling (#27793) 2023-07-28 10:08:38 +03:00
state_account.go core/state: value diff tracking in StateDB (#27349) 2023-07-11 15:43:23 +02:00
transaction_marshalling.go all: rename dataGas to blobGas (#27789) 2023-07-27 16:53:28 +03:00
transaction_signing_test.go core/types: add more context around ErrInvalidChainID (#25367) 2022-10-12 10:27:39 +02:00
transaction_signing.go all: move main transaction pool into a subpool (#27463) 2023-06-16 15:29:40 +03:00
transaction_test.go core/txpool/blobpool: 4844 blob transaction pool (#26940) 2023-07-27 13:45:35 +03:00
transaction.go all: replace data gas to blob gas in comments (#27825) 2023-08-01 10:07:25 +03:00
tx_access_list.go core/types: un-ssz blob txs, add json marshalling and tweaks (#27256) 2023-05-12 20:14:29 +03:00
tx_blob.go all: rename dataGas to blobGas (#27789) 2023-07-27 16:53:28 +03:00
tx_dynamic_fee.go core/types, params: add blob transaction type, RLP encoded for now (#27049) 2023-04-21 12:52:02 +03:00
tx_legacy.go core/types, params: add blob transaction type, RLP encoded for now (#27049) 2023-04-21 12:52:02 +03:00
types_test.go core/types: add benchmarks for rlp encoding/decoding (#23190) 2021-08-24 13:59:15 +02:00
withdrawal.go all: implement withdrawals (EIP-4895) (#26484) 2023-01-25 15:32:25 +01:00