Repository navigation
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: getoptimum/coderabbit/.coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
Included review availability: 3 reviews are currently available. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour. 📝 WalkthroughWalkthrough
Estimated code review effort: 2 (Simple) | ~5 minutes Suggested reviewers: Merge Risk: ⚪ Minimal · up to The PR validates serialized peer IDs while preserving valid address round trips and adds coverage for malformed input; no actionable merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 8 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (8 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
2aced99 to
2394425
Compare
|
Heads up on the red CI, in case it saves you some digging.
Nice catch on the underlying bug, by the way. Casting raw base58 bytes to |
|
All CI checks are green and CodeRabbit reports no actionable issues / minimal merge risk. This should be ready for review when you get a chance. @hpsing @abergasov @swarna1101 |
e445cd7 to
3b52d76
Compare
|
Updated the PR branch with current Validation on Go 1.26.6 / Linux:
Could a maintainer approve the workflows for the updated head and review when convenient? The previous revision's Lint, Tests and Security Scanning runs were waiting for approval; those are not passing results for this new revision. |
Summary
AddressInfoFromString now parses the serialized peer ID with libp2p's peer.Decode instead of decoding the string as raw base58 bytes and casting the result to peer.ID.
That keeps the JSON round trip behavior the same for valid peer.AddrInfo values, while rejecting malformed peer IDs such as an empty peerID field.
Changes
Summary by CodeRabbit
Bug Fixes
Tests
Current validation (October 7, 2026)
Updated with main
545fc100175001b5266175184f9051b606e1fc04without conflicts. On Go 1.26.6 / Linux,go test -race -count=1 ./pkg/net ./pkg/identity,go vet ./pkg/net ./pkg/identity, andgit diff --checkpassed. Full repository CI requires maintainer approval.