2021-01-25 13:36:39 +00:00
|
|
|
package tracers
|
cmd, core, eth/tracers: support fancier js tracing (#15516)
* cmd, core, eth/tracers: support fancier js tracing
* eth, internal/web3ext: rework trace API, concurrency, chain tracing
* eth/tracers: add three more JavaScript tracers
* eth/tracers, vendor: swap ottovm to duktape for tracing
* core, eth, internal: finalize call tracer and needed extras
* eth, tests: prestate tracer, call test suite, rewinding
* vendor: fix windows builds for tracer js engine
* vendor: temporary duktape fix
* eth/tracers: fix up 4byte and evmdis tracer
* vendor: pull in latest duktape with my upstream fixes
* eth: fix some review comments
* eth: rename rewind to reexec to make it more obvious
* core/vm: terminate tracing using defers
2017-12-21 11:56:11 +00:00
|
|
|
|
2022-03-01 15:40:24 +00:00
|
|
|
import (
|
2023-02-07 15:50:11 +00:00
|
|
|
"encoding/json"
|
|
|
|
|
2022-12-26 04:56:39 +00:00
|
|
|
"github.com/ledgerwatch/erigon/eth/tracers/logger"
|
2022-10-25 02:58:25 +00:00
|
|
|
"github.com/ledgerwatch/erigon/turbo/adapter/ethapi"
|
2022-03-01 15:40:24 +00:00
|
|
|
)
|
2021-01-25 13:36:39 +00:00
|
|
|
|
cmd, core, eth/tracers: support fancier js tracing (#15516)
* cmd, core, eth/tracers: support fancier js tracing
* eth, internal/web3ext: rework trace API, concurrency, chain tracing
* eth/tracers: add three more JavaScript tracers
* eth/tracers, vendor: swap ottovm to duktape for tracing
* core, eth, internal: finalize call tracer and needed extras
* eth, tests: prestate tracer, call test suite, rewinding
* vendor: fix windows builds for tracer js engine
* vendor: temporary duktape fix
* eth/tracers: fix up 4byte and evmdis tracer
* vendor: pull in latest duktape with my upstream fixes
* eth: fix some review comments
* eth: rename rewind to reexec to make it more obvious
* core/vm: terminate tracing using defers
2017-12-21 11:56:11 +00:00
|
|
|
// TraceConfig holds extra parameters to trace functions.
|
|
|
|
type TraceConfig struct {
|
2022-12-26 04:56:39 +00:00
|
|
|
*logger.LogConfig
|
2022-03-01 15:40:24 +00:00
|
|
|
Tracer *string
|
2023-02-07 15:50:11 +00:00
|
|
|
TracerConfig *json.RawMessage
|
2022-03-01 15:40:24 +00:00
|
|
|
Timeout *string
|
|
|
|
Reexec *uint64
|
|
|
|
NoRefunds *bool // Turns off gas refunds when tracing
|
|
|
|
StateOverrides *ethapi.StateOverrides
|
2023-02-20 08:04:11 +00:00
|
|
|
|
|
|
|
BorTraceEnabled *bool
|
|
|
|
BorTx *bool
|
cmd, core, eth/tracers: support fancier js tracing (#15516)
* cmd, core, eth/tracers: support fancier js tracing
* eth, internal/web3ext: rework trace API, concurrency, chain tracing
* eth/tracers: add three more JavaScript tracers
* eth/tracers, vendor: swap ottovm to duktape for tracing
* core, eth, internal: finalize call tracer and needed extras
* eth, tests: prestate tracer, call test suite, rewinding
* vendor: fix windows builds for tracer js engine
* vendor: temporary duktape fix
* eth/tracers: fix up 4byte and evmdis tracer
* vendor: pull in latest duktape with my upstream fixes
* eth: fix some review comments
* eth: rename rewind to reexec to make it more obvious
* core/vm: terminate tracing using defers
2017-12-21 11:56:11 +00:00
|
|
|
}
|