plugeth/core/state
Jeffrey Wilcke bb3651abc8 core/state, eth: Updated suicides objects when tracing transactions
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
2016-06-13 11:57:42 +02:00
..
dump.go core/state: fix TestDump 2016-04-15 11:16:56 +02:00
iterator_test.go all: update license information 2016-04-15 09:48:05 +02:00
iterator.go core/state, trie: switch iterator panics to error fields 2016-02-16 12:37:00 +02:00
main_test.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
managed_state_test.go core/state, core, miner: handle missing root error from state.New 2015-10-16 02:22:06 +02:00
managed_state.go core: various typos 2016-03-15 11:08:18 -07:00
state_object.go core/state: fix TestDump 2016-04-15 11:16:56 +02:00
state_test.go core/state: fix TestDump 2016-04-15 11:16:56 +02:00
statedb_test.go all: update license information 2016-04-15 09:48:05 +02:00
statedb.go core/state, eth: Updated suicides objects when tracing transactions 2016-06-13 11:57:42 +02:00
sync_test.go all: fix go vet warnings 2016-04-15 11:17:27 +02:00
sync.go core, eth, trie: fix data races and merge/review issues 2015-10-21 16:49:55 +03:00