miner: disable tracer in vm.Config to prevent conflicts during block synchronization#2206
miner: disable tracer in vm.Config to prevent conflicts during block synchronization#2206maoueh wants to merge 4 commits into0xPolygon:developfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This PR prevents mining-time EVM execution from invoking the chain-level vm.Config.Tracer hooks, avoiding conflicts when “live tracing” is enabled during block synchronization.
Changes:
- In
miner/worker.go, explicitly clearsvm.Config.Tracerin the miner’s derived VM config to ensure tracing hooks don’t run during block production.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.



Description
If running
borwith live tracing enabled, once reaching live, miner starts to also call the live tracing hooks causing problems because only the block synchronization should call the live tracer.Changes
Breaking changes
None
Nodes audience
People running Live Tracing + bor
Testing