Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions miner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -2372,6 +2372,12 @@ func (w *worker) clearPending(number uint64) {
// vmConfig returns the VM config.
func (w *worker) vmConfig() vm.Config {
cfg := *w.chain.GetVMConfig()
// Miner pulls its vm.Config from the chain instance, this brought up the vm.Config.Tracer
// in which should be active only for live tracing and no for mining. So here, we explicitly
// sets the tracer to nil to avoid having the miner tracing a block while it's produced conflicting
// with the live tracing.
Comment thread
maoueh marked this conversation as resolved.
Outdated
cfg.Tracer = nil
Comment thread
maoueh marked this conversation as resolved.

Comment thread
maoueh marked this conversation as resolved.
return cfg
}

Expand Down
Loading