docs(leios-testnet): add tutorial-style README#790
Conversation
📝 WalkthroughWalkthroughAdds a 225-line README to the ChangesLeios Testnet Documentation and Config
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (2)
examples/leios-testnet/README.md (2)
37-45: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueAdd language specifier to fenced code block for lint compliance.
The ASCII diagram block starting at Line 37 lacks a language tag, triggering
markdownlint-cli2MD040. Addtextto silence the warning and keep the document consistent.-``` +```text relay ──leios-notify──▶ BlockOffer(eb) "I have EB e"🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@examples/leios-testnet/README.md` around lines 37 - 45, The fenced ASCII diagram in README is missing a language specifier, which triggers markdown lint MD040. Update the fenced block around the leios testnet protocol diagram to use a text language tag so the Markdown stays lint-compliant and consistent with other code fences.Source: Linters/SAST tools
81-91: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueAdd language specifier to log output block.
The log sample block starting at Line 81 lacks a language tag, triggering
markdownlint-cli2MD040. Addtextto silence the warning.-``` +```text INFO connecting to Leios testnet relay="leios-node.play.dev.cardano.org:3001" magic=164🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@examples/leios-testnet/README.md` around lines 81 - 91, The log sample block in the README is missing a fenced code language tag and should be marked as plain text to satisfy markdownlint MD040. Update the fenced block containing the Leios testnet log sample so it uses a text specifier, keeping the existing sample content unchanged; this applies to the code block near the README’s log example and should be easy to locate by the INFO log lines.Source: Linters/SAST tools
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@examples/leios-testnet/README.md`:
- Around line 37-45: The fenced ASCII diagram in README is missing a language
specifier, which triggers markdown lint MD040. Update the fenced block around
the leios testnet protocol diagram to use a text language tag so the Markdown
stays lint-compliant and consistent with other code fences.
- Around line 81-91: The log sample block in the README is missing a fenced code
language tag and should be marked as plain text to satisfy markdownlint MD040.
Update the fenced block containing the Leios testnet log sample so it uses a
text specifier, keeping the existing sample content unchanged; this applies to
the code block near the README’s log example and should be easy to locate by the
INFO log lines.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 6dcf8852-f7cf-436a-95c4-256e8077b856
📒 Files selected for processing (2)
examples/leios-testnet/README.mdexamples/leios-testnet/src/main.rs
What
Adds a tutorial-style
README.mdfor theleios-testnetexample, which had no docs.The README walks a reader from zero to running:
leios-notify(push) vsleios-fetch(pull) comparison.RUST_LOG=info cargo run -p leios-testnet.src/main.rs: the handshake version swap that "turns Leios on", thetokio::select!event loop, Praos chain-sync underneath, thehandle_notificationnotify→fetch logic, and the{tx_hash => size}body decoding that sizes the tx bitmap.Also refreshes the chain intersection point in
src/main.rsto a current point (the Musashi Dojo testnet resets periodically, so the old point had aged out).Scope
This PR is scoped to
examples/leios-testnet/only. The separateleios-tuiexample (and itsCargo.tomlworkspace entry) is intentionally left out.🤖 Generated with Claude Code
Summary by CodeRabbit
Documentation
leios-testnetexample, including setup steps, run commands, expected output, verification checkpoints, troubleshooting tips, and extension notes.Bug Fixes