• Felix Lange's avatar
    core: remove stray account creations in state transition (#16470) · 3caf16b1
    Felix Lange authored
    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
    3caf16b1
Name
Last commit
Last update
.github Loading commit data...
accounts Loading commit data...
bmt Loading commit data...
build Loading commit data...
cmd Loading commit data...
common Loading commit data...
consensus Loading commit data...
console Loading commit data...
containers/docker Loading commit data...
contracts Loading commit data...
core Loading commit data...
crypto Loading commit data...
dashboard Loading commit data...
eth Loading commit data...
ethclient Loading commit data...
ethdb Loading commit data...
ethstats Loading commit data...
event Loading commit data...
internal Loading commit data...
les Loading commit data...
light Loading commit data...
log Loading commit data...
metrics Loading commit data...
miner Loading commit data...
mobile Loading commit data...
node Loading commit data...
p2p Loading commit data...
params Loading commit data...
rlp Loading commit data...
rpc Loading commit data...
swarm Loading commit data...
tests Loading commit data...
trie Loading commit data...
vendor Loading commit data...
whisper Loading commit data...
.dockerignore Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
COPYING.LESSER Loading commit data...
Dockerfile Loading commit data...
Dockerfile.alltools Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
VERSION Loading commit data...
appveyor.yml Loading commit data...
circle.yml Loading commit data...
interfaces.go Loading commit data...