|
|
@ -65,7 +65,7 @@ type TraceConfig struct { |
|
|
|
|
|
|
|
|
|
|
|
// StdTraceConfig holds extra parameters to standard-json trace functions.
|
|
|
|
// StdTraceConfig holds extra parameters to standard-json trace functions.
|
|
|
|
type StdTraceConfig struct { |
|
|
|
type StdTraceConfig struct { |
|
|
|
*vm.LogConfig |
|
|
|
vm.LogConfig |
|
|
|
Reexec *uint64 |
|
|
|
Reexec *uint64 |
|
|
|
TxHash common.Hash |
|
|
|
TxHash common.Hash |
|
|
|
} |
|
|
|
} |
|
|
@ -549,9 +549,7 @@ func (api *PrivateDebugAPI) standardTraceBlockToFile(ctx context.Context, block |
|
|
|
txHash common.Hash |
|
|
|
txHash common.Hash |
|
|
|
) |
|
|
|
) |
|
|
|
if config != nil { |
|
|
|
if config != nil { |
|
|
|
if config.LogConfig != nil { |
|
|
|
logConfig = config.LogConfig |
|
|
|
logConfig = *config.LogConfig |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
txHash = config.TxHash |
|
|
|
txHash = config.TxHash |
|
|
|
} |
|
|
|
} |
|
|
|
logConfig.Debug = true |
|
|
|
logConfig.Debug = true |
|
|
@ -576,7 +574,7 @@ func (api *PrivateDebugAPI) standardTraceBlockToFile(ctx context.Context, block |
|
|
|
chainConfigCopy := new(params.ChainConfig) |
|
|
|
chainConfigCopy := new(params.ChainConfig) |
|
|
|
*chainConfigCopy = *chainConfig |
|
|
|
*chainConfigCopy = *chainConfig |
|
|
|
chainConfig = chainConfigCopy |
|
|
|
chainConfig = chainConfigCopy |
|
|
|
if yolov2 := config.Overrides.YoloV2Block; yolov2 != nil { |
|
|
|
if yolov2 := config.LogConfig.Overrides.YoloV2Block; yolov2 != nil { |
|
|
|
chainConfig.YoloV2Block = yolov2 |
|
|
|
chainConfig.YoloV2Block = yolov2 |
|
|
|
canon = false |
|
|
|
canon = false |
|
|
|
} |
|
|
|
} |
|
|
|