forked from cerc-io/plugeth
bb3651abc8
Consensus rules dictate that objects can only be removed during the finalisation of the transaction (i.e. after all calls have finished). Thus calling a suicided contract twice from the same transaction: A->B(S)->ret(A)->B(S) results in 2 suicides. Calling the suicided object twice from two transactions: A->B(S), A->B, results in only one suicide and a call to an empty object. Our current debug tracing functionality replays all transaction that were executed prior to the targetted transaction in order to provide the user with an accurate trace. As a side effect to calling StateDB.IntermediateRoot it also deletes any suicides objects. Our tracing code never calls this function because it isn't interested in the intermediate root. Becasue of this it caused a bug in the tracing code where transactions that were send to priviously deleted objects resulted in two suicides rather than one suicide and a call to an empty object. Fixes #2542 |
||
---|---|---|
.. | ||
state | ||
types | ||
vm | ||
.gitignore | ||
asm.go | ||
bench_test.go | ||
block_validator_test.go | ||
block_validator.go | ||
blockchain_test.go | ||
blockchain.go | ||
blocks.go | ||
chain_makers_test.go | ||
chain_makers.go | ||
chain_pow_test.go | ||
chain_pow.go | ||
config.go | ||
database_util_test.go | ||
database_util.go | ||
default_genesis.go | ||
error.go | ||
events.go | ||
execution.go | ||
fees.go | ||
filter_test.go | ||
gaspool.go | ||
genesis.go | ||
headerchain.go | ||
helper_test.go | ||
state_processor.go | ||
state_transition.go | ||
tx_pool_test.go | ||
tx_pool.go | ||
types.go | ||
vm_env.go |