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
refactor(requester): unify the per-batch drop/submit log fields
Audit finding M3: the three WARN-level per-batch logs (submission failure
in logSubmission, stale prune, TTL submit-anyway) had drifted to different,
overlapping field sets, so the no-silent-drops fields were inconsistent
and the invariant did not really live in one place.
Add a batchFields helper that attaches the common fields (eoa, tx-hashes,
low/high nonce, batch-size, local-indexed-nonce) to a caller-supplied
zerolog event, and route all three WARN sites through it. Each site then
only adds its specifics (reason+err / expected-nonce / none). The nonce
range is computed as the true min/max so it is correct even for the
stale-prune batch, which is collected in unordered map iteration. The
lighter success DEBUG line is intentionally left as-is.
No behavior change beyond the prune/TTL logs gaining the shared fields.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments