Skip to content

Conversation

@LogicalGuy77
Copy link
Contributor

What was wrong?

This PR resolves merge conflicts and continues the work from #698.

Issue #698

How was it fixed?

Merge Integration:

  • Voucher verification with cryptographic signatures (from HEAD)
  • Data transfer limits enforcement (from HEAD)
  • SPR (Signed Peer Record) validation (from upstream)
  • Multi-hop relay prevention (from upstream)
  • All 9 Circuit Relay v2 protocol tests passing

To-Do

  • Clean up commit history
  • Add or update documentation related to these changes
  • Add entry to the release notes

Cute Animal Picture

put a cute animal picture link inside the parentheses

seetadev and others added 10 commits August 29, 2025 03:35
Integrated voucher verification and data transfer limits (from HEAD)
with SPR validation and protocol improvements (from upstream/main).

Key changes:
- Merged reservation handling in protocol.py
- Fixed peer ID access to use stream.muxed_conn.peer_id
- Corrected test to create reservation for destination peer
- Fixed type errors: removed .to_pb() call, used CONNECTION_FAILED
- All 9 Circuit Relay v2 tests passing
@seetadev
Copy link
Contributor

@LogicalGuy77 : Hi Harshit. While @guha-rahul adds you as a collaborator in the PR: #698: please fix the CI/CD issues remaining. We will close this PR and you can migrate the changes to the main PR.

Protocol fixes:
1. Fixed is_open() calls that don't exist on NetStream
   - Simplified error handling in reservation code
   - Removed unnecessary state checks in cleanup

2. Fixed SPR forwarding from destination to source
   - Extract destination's SPR from STOP response directly
   - Forward it to source in HOP STATUS message
   - Fixes 'Invalid senderRecord' errors

3. Fixed type errors from merge
   - Removed incorrect .to_pb() call
   - Changed INTERNAL_ERROR to CONNECTION_FAILED

Test fix:
4. Fixed test_circuit_v2_transport_message_routing_through_relay
   - Added missing reservation step before connecting
   - Destination now properly reserves with relay
   - Test now follows correct Circuit Relay v2 flow

All 48 relay tests passing (100% success rate)
All 9 Circuit Relay v2 protocol tests passing
@LogicalGuy77
Copy link
Contributor Author

@seetadev fixed the ci tests, waiting to be added as collaborator

@seetadev
Copy link
Contributor

@LogicalGuy77 : Great, hoping Rahul responds soon. He did add Sukhman and Soham as collaborators earlier.

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.

3 participants