op-geth/tests
Nick Johnson 781915f183 core/vm: Refactor tracing to make Tracer the main interface
This CL makes several refactors:
 - Define a Tracer interface, implementing the `CaptureState` method
 - Add the VM environment as the first argument of
   `Tracer.CaptureState`
 - Rename existing functionality `StructLogger` an make it an
   implementation of `Tracer`
 - Delete `StructLogCollector` and make `StructLogger` collect the logs
   directly
 - Change all callers to use the new `StructLogger` where necessary and
   extract logs from that.
 - Deletes the apparently obsolete and likely nonfunctional 'TraceCall'
   from the eth API.

Callers that only wish accumulated logs can use the `StructLogger`
implementation straightforwardly. Callers that wish to efficiently
capture VM traces and operate on them without excessive copying can now
implement the `Tracer` interface to receive VM state at each step and
do with it as they wish.

This CL also removes the accumulation of logs from the vm.Environment;
this was necessary as part of the refactor, but also simplifies it by
removing a responsibility that doesn't directly belong to the
Environment.
2016-08-22 09:26:15 +01:00
..
files cmd, core, eth, miner, params, tests: finalize the DAO fork 2016-07-15 16:52:55 +03:00
block_test.go cmd, core, eth, miner, params, tests: finalize the DAO fork 2016-07-15 16:52:55 +03:00
block_test_util.go core, params, tests: add DAO hard-fork balance moves 2016-07-15 16:52:55 +03:00
init.go eth: enable bad block reports 2016-05-25 02:02:51 +02:00
rlp_test.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
rlp_test_util.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
state_test.go core: added basic chain configuration 2016-04-01 01:01:10 +02:00
state_test_util.go all: update license information 2016-04-15 09:48:05 +02:00
transaction_test.go tests: updated homestead tests 2016-02-18 10:08:18 +01:00
transaction_test_util.go core: added basic chain configuration 2016-04-01 01:01:10 +02:00
util.go core/vm: Refactor tracing to make Tracer the main interface 2016-08-22 09:26:15 +01:00
vm_test.go cmd/evm, core/vm, test: refactored VM and core 2015-10-04 01:13:54 +02:00
vm_test_util.go core, params, tests: add DAO hard-fork balance moves 2016-07-15 16:52:55 +03:00