Skip to content

Commit abf9ef0

Browse files
holimanrjl493456442
authored andcommitted
eth: fix error in tracing if reexec is set (ethereum#21830)
* eth: fix error in tracing if reexec is set * eth: change pointer embedding to value-embedding
1 parent 5b936e6 commit abf9ef0

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

eth/api_tracer.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ type TraceConfig struct {
6565

6666
// StdTraceConfig holds extra parameters to standard-json trace functions.
6767
type StdTraceConfig struct {
68-
*vm.LogConfig
68+
vm.LogConfig
6969
Reexec *uint64
7070
TxHash common.Hash
7171
}
@@ -549,9 +549,7 @@ func (api *PrivateDebugAPI) standardTraceBlockToFile(ctx context.Context, block
549549
txHash common.Hash
550550
)
551551
if config != nil {
552-
if config.LogConfig != nil {
553-
logConfig = *config.LogConfig
554-
}
552+
logConfig = config.LogConfig
555553
txHash = config.TxHash
556554
}
557555
logConfig.Debug = true
@@ -576,7 +574,7 @@ func (api *PrivateDebugAPI) standardTraceBlockToFile(ctx context.Context, block
576574
chainConfigCopy := new(params.ChainConfig)
577575
*chainConfigCopy = *chainConfig
578576
chainConfig = chainConfigCopy
579-
if yolov2 := config.Overrides.YoloV2Block; yolov2 != nil {
577+
if yolov2 := config.LogConfig.Overrides.YoloV2Block; yolov2 != nil {
580578
chainConfig.YoloV2Block = yolov2
581579
canon = false
582580
}

0 commit comments

Comments
 (0)