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
{{ message }}
Repository navigation
CLI: nirium verify should retry and fall back to another gateway #135
nirium verify fetches from a single gateway (gateway.pinata.cloud by default) and fails on the first non-200. A freshly anchored CID isn't always served right away: on 12 Oct a test anchor returned 404 on the first read and 200 about 30 seconds later. Right now that shows up as VERIFICATION FAILED, which reads like tampering when it's just propagation.
Proposal:
accept --gateway more than once and try them in order, with a sensible default list
retry a 404 a few times with backoff (--retries, --timeout)
report "not yet available" separately from "hash mismatch", in both the text output and --json
Done when: fetchAndVerifyCid has tests for 404-then-200, first gateway down and second up, and all gateways down, with an injected fetch (it already takes fetchFn). Exit codes stay as they are: non-zero on any failure.
I examined the issue "CLI: nirium verify should retry and fall back to another gateway" in nirium-protocol/nirium and would be glad to implement the required changes.
Technical Implementation Outline:
Review target data structures, error handling (Result/custom errors), and concurrency safety.
Implement resilient, idiomatic Rust logic with zero panics and defensive boundary checks.
Add comprehensive unit and regression tests covering expected behavior and edge cases.
Activity
ravimahatonp commentedon Oct 14, 2026
Hello team,
I examined the issue "CLI: nirium verify should retry and fall back to another gateway" in nirium-protocol/nirium and would be glad to implement the required changes.
Technical Implementation Outline:
Result/custom errors), and concurrency safety.cargo check,cargo test, andcargo clippy -- -D warningspass cleanly.Please assign this issue to me. I will submit a clean, well-tested, and production-ready PR promptly!
grantfox-oss commentedon Oct 15, 2026
🦊 GrantFox — @M0nsxx has been assigned to this issue!
Next steps:
Closes #135)Good luck! Track your progress on GrantFox.
feat(cli): nirium verify --gateway repeatable with retry/backoff fall…
grantfox-oss commentedon Nov 7, 2026
🎉 This issue has been marked as completed on GrantFox!
@M0nsxx's PR #265 was approved and merged by @Eras256.
🏆 @M0nsxx: You earned 35 FoxPoints for this contribution! Your current tier: Explorer (608 total points). Track your full progress on GrantFox.
👏 Great work, @M0nsxx! Keep contributing to nirium-protocol.