go-ethereum/tests
Felix Lange 3caf16b15f
core: remove stray account creations in state transition (#16470)
The 'from' and 'to' methods on StateTransitions are reader methods and
shouldn't have inadvertent side effects on state.

It is safe to remove the check in 'from' because account existence is
implicitly checked by the nonce and balance checks. If the account has
non-zero balance or nonce, it must exist. Even if the sender account has
nonce zero at the start of the state transition or no balance, the nonce
is incremented before execution and the account will be created at that
time.

It is safe to remove the check in 'to' because the EVM creates the
account if necessary.

Fixes #15119
2018-04-10 15:33:25 +02:00
..
testdata@2bb0c3da3b tests: update to upstream commit 2bb0c3da3b (#15806) 2018-01-04 13:18:30 +01:00
block_test.go params: Updated finalized gascosts for ECMUL/MODEXP (#15135) 2017-09-14 10:35:54 +03:00
block_test_util.go core, trie: intermediate mempool between trie and database (#15857) 2018-02-05 17:40:32 +01:00
difficulty_test.go all: update license information (#16089) 2018-02-14 13:49:11 +01:00
difficulty_test_util.go all: update license information (#16089) 2018-02-14 13:49:11 +01:00
gen_btheader.go all: regenerate codecs with gencodec commit 90983d99de (#15830) 2018-01-08 15:13:22 +02:00
gen_difficultytest.go tests: add ethash difficulty tests (#15191) 2017-09-27 15:30:41 +02:00
gen_stenv.go all: switch gas limits from big.Int to uint64 2018-01-03 14:45:35 +02:00
gen_sttransaction.go all: regenerate codecs with gencodec commit 90983d99de (#15830) 2018-01-08 15:13:22 +02:00
gen_tttransaction.go all: regenerate codecs with gencodec commit 90983d99de (#15830) 2018-01-08 15:13:22 +02:00
gen_vmexec.go all: regenerate codecs with gencodec commit 90983d99de (#15830) 2018-01-08 15:13:22 +02:00
init.go all: update license information (#16089) 2018-02-14 13:49:11 +01:00
init_test.go all: update license information (#16089) 2018-02-14 13:49:11 +01:00
rlp_test.go tests: update tests and implement general state tests (#14734) 2017-07-11 13:49:14 +02:00
rlp_test_util.go tests: update tests and implement general state tests (#14734) 2017-07-11 13:49:14 +02:00
state_test.go core: remove stray account creations in state transition (#16470) 2018-04-10 15:33:25 +02:00
state_test_util.go all: update license information (#16089) 2018-02-14 13:49:11 +01:00
transaction_test.go consensus, core, params: rebrand Metro to Byzantium 2017-09-14 10:10:46 +03:00
transaction_test_util.go all: switch gas limits from big.Int to uint64 2018-01-03 14:45:35 +02:00
vm_test.go core, tests: implement Metropolis EIP 684 2017-08-25 13:00:27 +03:00
vm_test_util.go cmd, core, eth/tracers: support fancier js tracing (#15516) 2017-12-21 13:56:11 +02:00