plugeth/core/types
Felix Lange 909dd4a109
rlp/rlpgen: remove build tag (#28106)
* rlp/rlpgen: remove build tag

This tag was supposed to prevent unstable output when types reference each other. Imagine
there are two struct types A and B, where a reference to type B is in A. If I run rlpgen
on type B first, and then on type A, the generator will see the B.EncodeRLP method and
call it. However, if I run rlpgen on type A first, it will inline the encoding of B.

The solution I chose for the initial release of rlpgen was to just ignore methods
generated by rlpgen using a build tag. But there is a problem with this: if any code in
the package calls EncodeRLP explicitly, the package can't be loaded without errors anymore
in rlpgen, because the loader ignores it. Would be nice if there was a way to just make it
ignore invalid functions during type checking (they're not necessary for rlpgen), but
golang.org/x/tools/go/packages does not provide a way of ignoring them.

Luckily, the types we use rlpgen with do not reference each other right now, so we can
just remove the build tags for now.
2023-09-14 12:28:40 +02:00
..
block_test.go internal/blocktest: add package for shared test code (#27270) 2023-07-11 14:57:02 +02:00
block.go beacon/engine, eth/catalyst, miner: EIP-4788 CL/EL protocol updates (#27872) 2023-08-26 04:52:12 +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 rlp/rlpgen: remove build tag (#28106) 2023-09-14 12:28:40 +02:00
gen_header_json.go beacon/engine, eth/catalyst, miner: EIP-4788 CL/EL protocol updates (#27872) 2023-08-26 04:52:12 +02:00
gen_header_rlp.go rlp/rlpgen: remove build tag (#28106) 2023-09-14 12:28:40 +02:00
gen_log_json.go core/types: transaction and receipt encoding/decoding optimizations (#27976) 2023-08-25 20:03:41 +02:00
gen_log_rlp.go rlp/rlpgen: remove build tag (#28106) 2023-09-14 12:28:40 +02: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 rlp/rlpgen: remove build tag (#28106) 2023-09-14 12:28:40 +02:00
hashes.go all: implement path-based state scheme (#25963) 2023-08-01 15:17:32 +03:00
hashing_test.go all: activate pbss as experimental feature (#26274) 2023-08-10 22:21:36 +03:00
hashing.go core/types: transaction and receipt encoding/decoding optimizations (#27976) 2023-08-25 20:03:41 +02: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/types: transaction and receipt encoding/decoding optimizations (#27976) 2023-08-25 20:03:41 +02:00
receipt_test.go all: rename dataGas to blobGas (#27789) 2023-07-27 16:53:28 +03:00
receipt.go core/types: transaction and receipt encoding/decoding optimizations (#27976) 2023-08-25 20:03:41 +02:00
state_account.go core/state: value diff tracking in StateDB (#27349) 2023-07-11 15:43:23 +02:00
transaction_marshalling.go core/types: fix unmarshalling of BlobTx values (#27939) 2023-08-16 23:22:15 +02:00
transaction_signing_test.go core/types: add more context around ErrInvalidChainID (#25367) 2022-10-12 10:27:39 +02:00
transaction_signing.go core/types: remove duplication in eip2930 signer (#27860) 2023-08-11 09:50:57 -04:00
transaction_test.go all: use rlp.DecodeBytes instead of rlp.Decode where possible (#27994) 2023-08-24 11:47:42 +03:00
transaction.go core/types: transaction and receipt encoding/decoding optimizations (#27976) 2023-08-25 20:03:41 +02:00
tx_access_list.go core/types: support for optional blob sidecar in BlobTx (#27841) 2023-08-14 10:13:34 +02:00
tx_blob_test.go core/types: support for optional blob sidecar in BlobTx (#27841) 2023-08-14 10:13:34 +02:00
tx_blob.go core/types: support for optional blob sidecar in BlobTx (#27841) 2023-08-14 10:13:34 +02:00
tx_dynamic_fee.go core/types: support for optional blob sidecar in BlobTx (#27841) 2023-08-14 10:13:34 +02:00
tx_legacy.go core/types: support for optional blob sidecar in BlobTx (#27841) 2023-08-14 10:13:34 +02: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