plugeth/tests
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
..
evm-benchmarks@d8b88f4046 tests: update evm-benchmarks (#26255) 2022-11-28 11:13:41 +01:00
fuzzers core/vm: use golang native big.Int (#26834) 2023-03-08 13:12:53 -05:00
solidity all: update license headers and AUTHORS from git history (#24947) 2022-05-24 20:39:40 +02:00
testdata@bac70c50a5 tests: update (#26548) 2023-02-06 14:52:51 -05:00
block_test_util.go all: change chain head markers from block to header (#26777) 2023-03-02 08:29:15 +02:00
block_test.go tests: update tests (#26314) 2022-12-20 09:56:52 -05:00
difficulty_test_util.go all: add whitespace linter (#25312) 2022-07-25 13:14:03 +03:00
difficulty_test.go all: remove support for Ropsten (#26644) 2023-02-09 10:03:00 +02:00
gen_btheader.go tests: update (#26548) 2023-02-06 14:52:51 -05:00
gen_difficultytest.go all: simplify timestamps to uint64 (#19372) 2019-04-02 23:28:48 +03:00
gen_stenv.go build: add imports for go generate tools (#24682) 2022-04-12 20:24:02 +02:00
gen_sttransaction.go tests: update for London (#22976) 2021-06-07 14:37:56 +02:00
init_test.go build: upgrade to go 1.19 (#25726) 2022-09-10 13:25:40 +02:00
init.go tests: update (#26548) 2023-02-06 14:52:51 -05:00
rlp_test_util.go all: more linters (#24783) 2022-06-13 16:24:45 +02:00
rlp_test.go tests: get test name from testing.T (#22941) 2021-05-25 22:47:14 +02:00
state_test_util.go core, core/types: plain Message struct (#25977) 2023-03-09 14:19:12 +01:00
state_test.go core, core/types: plain Message struct (#25977) 2023-03-09 14:19:12 +01:00
transaction_test_util.go core/vm: implement EIP-3860: Limit and meter initcode (#23847) 2023-01-11 04:05:47 -05:00
transaction_test.go tests: get test name from testing.T (#22941) 2021-05-25 22:47:14 +02:00