Skip to content

fix(node): a stalled authoring loop said nothing at all - #15

Merged
MehranMazhar merged 1 commit into
mainfrom
fix/visible-authoring-stall
Sep 14, 2026
Merged

MehranMazhar merged 1 commit into
mainfrom
fix/visible-authoring-stall

Conversation

@MehranMazhar

Copy link
Copy Markdown
Member

Three stage nodes sat at height 84 for hours and produced no log above debug to say so. The first sign was the block explorer looking empty, and finding the cause meant reading the authoring loop rather than any log it had written.

The per-tick error is rightly debug: the loop ticks every second and fails on most of them by design — an authority that does not own the current slot cannot author, and an idle chain already holding this slot's block should not. What was missing is the distinction between failing this tick and having failed every tick for hours.

Each authority owns one slot in authorities.len(), so a healthy node authors roughly every step_duration * len seconds — 60s for the three-node stage set. Five minutes of continuous failure is a stall, not a quiet period.

It now warns with the actual error, because which of the several reasons authoring can fail is the entire question when this fires.

This does not fix the stall. It makes the next one diagnosable in one log line instead of an afternoon.

🤖 Generated with Claude Code

Three stage nodes sat at the same height for hours and produced no log above debug to say so. The
first sign of it was the block explorer looking empty, and finding the cause meant reading the
authoring loop rather than any log it had written.

The per-tick error is rightly debug: the loop ticks every second and fails on most of them by
design, because an authority that does not own the current slot cannot author and an idle chain
holding this slot's block should not. What was missing is the distinction between failing this tick
and having failed every tick for hours.

Each authority owns one slot in authorities.len(), so a healthy node authors about every
step_duration * len seconds -- 60s for the three-node stage set. Five minutes of continuous failure
is a stall, not a quiet period, and it now warns with the actual error: which of the several
reasons authoring can fail is the entire question when this fires.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@MehranMazhar
MehranMazhar merged commit a43afd4 into main Sep 14, 2026
6 checks passed
@MehranMazhar
MehranMazhar deleted the fix/visible-authoring-stall branch September 14, 2026 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant