Skip to content

Conversation

sanity
Copy link
Collaborator

@sanity sanity commented Aug 30, 2021

Overall architecture RFC

@iduartgomez iduartgomez changed the title pull request for feedback Overall architecture RFC Aug 30, 2021
@sanity
Copy link
Collaborator Author

sanity commented Sep 8, 2021 via email

@sanity sanity merged commit 05b7642 into main Sep 17, 2021
@iduartgomez iduartgomez deleted the architecture-doc branch September 17, 2021 19:15
sanity added a commit that referenced this pull request Sep 24, 2025
## Phase 1-2 Fixes Applied:

### Issue #1: Transaction ID correlation in client_events
- Fixed missing WaitingTransaction::Subscription registration
- Now properly routes subscription responses back to clients
- Without this fix, clients would never receive SubscribeResponse messages

### Issue #2: Short-circuit on first peer failure in subscribe.rs
- Replaced closest_potentially_caching with k_closest_potentially_caching
- Now tries up to 3 candidate peers instead of failing on first unavailable peer
- Fixes subscription failures for nodes at optimal location
- Applied to all 3 occurrences in subscribe.rs operations

## What these fixes address:
- Nodes at optimal location can now successfully subscribe to contracts
- Multiple peer candidates prevent single point of failure in routing
- Proper transaction correlation ensures client responses are delivered
- Eliminates "no remote peers available" failures in connected networks

## Files Modified:
- crates/core/src/client_events/mod.rs: Transaction correlation fix
- crates/core/src/operations/subscribe.rs: Multi-candidate peer selection

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
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.

2 participants