op-geth/eth
Roberto Bayardo 67ac5f0ae7
core, core/types: plain Message struct (#25977)
Here, the core.Message interface turns into a plain struct and
types.Message gets removed.

This is a breaking change to packages core and core/types. While we do
not promise API stability for package core, we do for core/types. An
exception can be made for types.Message, since it doesn't have any
purpose apart from invoking the state transition in package core.
types.Message was also marked deprecated by the same commit it
got added in, 4dca5d4db7 (November 2016).

The core.Message interface was added in December 2014, in commit
db494170dc, for the purpose of 'testing' state transitions. It's the
same change that made transaction struct fields private. Before that,
the state transition used *types.Transaction directly.

Over time, multiple implementations of the interface accrued across
different packages, since constructing a Message is required whenever
one wants to invoke the state transition. These implementations all
looked very similar, a struct with private fields exposing the fields
as accessor methods.

By changing Message into a struct with public fields we can remove all
these useless interface implementations. It will also hopefully
simplify future changes to the type with less updates to apply across
all of go-ethereum when a field is added to Message.

---------

Co-authored-by: Felix Lange <fjl@twurst.com>
2023-03-09 14:19:12 +01:00
..
catalyst beacon/engine: don't omit empty withdrawals in ExecutionPayloadBodies (#26698) 2023-03-07 16:30:04 +01:00
downloader all: change chain head markers from block to header (#26777) 2023-03-02 08:29:15 +02:00
ethconfig all: make timestamp-based fork checks based on uint64 (#26474) 2023-01-25 12:12:28 +01:00
fetcher all: use unified emptyRootHash and emptyCodeHash (#26718) 2023-02-21 06:12:27 -05:00
filters eth/filters: fix a breaking change and return rpctransaction (#26757) 2023-02-22 13:06:43 +02:00
gasprice all: change chain head markers from block to header (#26777) 2023-03-02 08:29:15 +02:00
protocols all: change chain head markers from block to header (#26777) 2023-03-02 08:29:15 +02:00
tracers core, core/types: plain Message struct (#25977) 2023-03-09 14:19:12 +01:00
api.go all: change chain head markers from block to header (#26777) 2023-03-02 08:29:15 +02:00
api_backend.go core, core/types: plain Message struct (#25977) 2023-03-09 14:19:12 +01:00
api_test.go core/state: return error when storage trie can't be opened (#26350) 2022-12-21 10:21:21 +01:00
backend.go miner, cmd, eth: require explicit etherbase address (#26413) 2023-01-20 11:26:01 -05:00
bloombits.go eth: move eth.Config to a common package (#22205) 2021-02-05 13:51:15 +01:00
handler.go all: change chain head markers from block to header (#26777) 2023-03-02 08:29:15 +02:00
handler_eth.go eth: implement eth/68 (#25980) 2022-10-31 16:23:26 +02:00
handler_eth_test.go all: change chain head markers from block to header (#26777) 2023-03-02 08:29:15 +02:00
handler_snap.go eth: check snap satelliteness, delegate drop to eth (#22235) 2021-02-02 10:44:36 +02:00
handler_test.go all: cleanup tests (#25641) 2022-09-07 20:21:59 +02:00
peer.go eth: remove admin.peers[i].eth.head and difficulty (#26804) 2023-03-06 09:27:46 +02:00
peerset.go all: fix some typos (#25551) 2022-08-19 09:00:21 +03:00
state_accessor.go core, core/types: plain Message struct (#25977) 2023-03-09 14:19:12 +01:00
sync.go all: change chain head markers from block to header (#26777) 2023-03-02 08:29:15 +02:00
sync_test.go eth: introduce eth67 protocol (#24093) 2022-06-15 12:56:47 +02:00