plugeth/cmd
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
..
abidump all: update license headers and AUTHORS from git history (#24947) 2022-05-24 20:39:40 +02:00
abigen accounts, build, mobile: remove Andriod and iOS support 2023-02-03 12:29:07 +02:00
bootnode cmd/bootnode, cmd/utils: add 'pmp:<IP>' to --nat flag description (#26381) 2023-01-16 11:21:41 +01:00
checkpoint-admin all: remove support for Ropsten (#26644) 2023-02-09 10:03:00 +02:00
clef all: remove support for Ropsten (#26644) 2023-02-09 10:03:00 +02:00
devp2p cmd/devp2p: faster crawling + less verbose dns updates (#26697) 2023-02-27 11:36:26 +01:00
ethkey internal/version: use gitCommit injection in version handling code (#25851) 2022-09-23 14:08:25 +02:00
evm core, core/types: plain Message struct (#25977) 2023-03-09 14:19:12 +01:00
faucet all: use http package to replace http method names (#26535) 2023-01-24 11:12:25 +02:00
geth core/rawdb: find smallest block stored in key-value store when chain gapped (#26719) 2023-03-08 02:39:13 -05:00
p2psim internal/version: use gitCommit injection in version handling code (#25851) 2022-09-23 14:08:25 +02:00
rlpdump all: change format 0x%x to %#x (#25221) 2022-07-04 11:03:32 +03:00
utils all: change chain head markers from block to header (#26777) 2023-03-02 08:29:15 +02:00