Skip to content

fix: detach block callbacks from substrate subscription handler - #428

Merged
dylanuys merged 2 commits into
mainfrom
fix/detach-block-callbacks
Aug 21, 2026
Merged

dylanuys merged 2 commits into
mainfrom
fix/detach-block-callbacks

Conversation

@dylanuys

@dylanuys dylanuys commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Block callbacks were awaited inside the subscription handler, so any callback running longer than 120s stalled header processing, tripped the staleness watchdog, and was cancelled mid-flight. The generator challenge sweep exceeds 120s, so challenges were never issued.

  • Run block callbacks as detached tasks so header processing never stalls
  • Bound the miner-type sweep with a 10s socket connect timeout

Block callbacks were awaited inside the subscription handler, so any
callback running longer than 120s stalled header processing, tripped the
staleness watchdog, and was cancelled mid-flight. The generator challenge
sweep exceeds 120s, so challenges were never issued.

- Run block callbacks as detached tasks so header processing never stalls
- Bound the miner-type sweep with a 10s socket connect timeout
- Disable the startup weight set
@dylanuys
dylanuys merged commit 56be51e into main Aug 21, 2026
2 checks passed
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