Skip to content

Commit

Permalink
eth: fix error in tracing if reexec is set (ethereum#21830)
Browse files Browse the repository at this point in the history
* eth: fix error in tracing if reexec is set

* eth: change pointer embedding to value-embedding
  • Loading branch information
holiman authored and iquidus committed Jan 24, 2021
1 parent 984adad commit 691b86d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions eth/api_tracer.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ type TraceConfig struct {

// StdTraceConfig holds extra parameters to standard-json trace functions.
type StdTraceConfig struct {
*vm.LogConfig
vm.LogConfig
Reexec *uint64
TxHash common.Hash
}
Expand Down Expand Up @@ -549,9 +549,7 @@ func (api *PrivateDebugAPI) standardTraceBlockToFile(ctx context.Context, block
txHash common.Hash
)
if config != nil {
if config.LogConfig != nil {
logConfig = *config.LogConfig
}
logConfig = config.LogConfig
txHash = config.TxHash
}
logConfig.Debug = true
Expand Down

0 comments on commit 691b86d

Please sign in to comment.