You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
stagedsync: guard BAL debug file writes and unify serialization format (#20223)
## Summary
- Guard `writeBALToFile` behind `dbg.TraceBlockAccessLists`
(`TRACE_BLOCK_ACCESS_LISTS` env var) so BAL debug files are **not
written by default**, preventing unbounded disk growth
- Replace ~65 lines of custom printf-based serialization in
`writeBALToFile` with a single call to `bal.DebugPrint(file)`, unifying
the output format with the mismatch-dump path (`DebugString`)
Related: #20214, #20216
## Test plan
- [x] `make erigon` compiles successfully
- [ ] Run with `TRACE_BLOCK_ACCESS_LISTS=true` and verify BAL files are
written with the unified format
- [ ] Run without the env var and verify no BAL files are created
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments