Skip to content

feat(live-tail): replace adder with raw gouroboros NtN ChainSync#100

Merged
wcatz merged 3 commits intomasterfrom
feat/raw-gouroboros-live-tail
Mar 9, 2026
Merged

feat(live-tail): replace adder with raw gouroboros NtN ChainSync#100
wcatz merged 3 commits intomasterfrom
feat/raw-gouroboros-live-tail

Conversation

@wcatz
Copy link
Copy Markdown
Owner

@wcatz wcatz commented Mar 9, 2026

Summary

  • Drop adder dependency entirely, use gouroboros directly for live chain tail
  • NtN ChainSync for headers + BlockFetch on-demand for our pool's blocks (tx count)
  • Net -57 lines, 9 fewer go.mod dependencies
  • Reuses extractVrfFromHeader from sync.go

Test plan

  • Build passes, all 63 tests pass
  • Full historical sync on goduckbot-test

wcatz added 3 commits March 9, 2026 13:11
…Sync

Drop the adder dependency entirely and use gouroboros directly for the
live chain tail. ChainSync provides block headers over NtN (TCP), and
BlockFetch retrieves full blocks on-demand only for our pool's minted
blocks to preserve tx count in notifications.

- Remove 5 adder imports, add 4 gouroboros protocol imports
- Replace pipeline.Pipeline with direct ouroboros.Connection
- New startLiveTail() with host failover, stall detection, keepalive
- New handleRollForward() processes ledger.BlockHeader directly
- Reuse extractVrfFromHeader from sync.go (eliminate duplicate)
- Net -57 lines, 9 fewer go.mod dependencies
Manual trigger workflow that builds multiarch (amd64+arm64) and pushes
to Docker Hub with a custom tag. For testing feature branches before
merge.
@wcatz wcatz merged commit 81294b2 into master Mar 9, 2026
3 checks passed
@wcatz wcatz deleted the feat/raw-gouroboros-live-tail branch March 9, 2026 18:35
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 9, 2026

Warning

Rate limit exceeded

@wcatz has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 8 minutes and 56 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: f50e1caa-9d41-4f3d-a82f-eac4ac50c8c4

📥 Commits

Reviewing files that changed from the base of the PR and between e35fd8f and ee7af05.

⛔ Files ignored due to path filters (1)
  • go.sum is excluded by !**/*.sum
📒 Files selected for processing (2)
  • go.mod
  • main.go
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/raw-gouroboros-live-tail

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

wcatz added a commit that referenced this pull request Mar 15, 2026
Reverts PR #100 (raw NtN ChainSync live tail) which broke pool block
matching — adder hashes IssuerVkey to pool ID internally, raw ChainSync
does not. Restores the battle-tested adder pipeline and starts it
immediately in full mode so notifications work during historical sync.

- Adder pipeline runs in parallel with historical ChainSync
- Nonce ProcessBlock gated behind historicalSyncDone to prevent corruption
- Leaderlog/nonce/nextblock commands unblocked during sync (Koios fallback)
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