network
network copied to clipboard
Monorepo containing all the main components of Streamr Network.
## Open questions / challenges / TODO ### Bucket cleanup logic - How long to store buckets for, when to cleanup, possible persistence of them for later use? - If...
## Functional changes TODO: update changelog: that resend subscriptions can be unsubscribed TODO: remove Subscription#unsubscribe test cases from unsubscribe.test.ts (maybe replace with unit test which ensures that Subscription#unsubscribe is called)...
## Summary Added test case which demonstrates how subscription is automatically unsubscribed if user iterates it and breaks out of loop. It is not clear whether this is a good...
## Checklist - [ ] Has passing tests that demonstrate this change works - [ ] Updated Changelog - [ ] Updated Documentation
Extracted `ConnectionsView` interface from `ITransport`. Now `ITransport` handles just the transport logic. Connection management and queries are in separate classes: in `ConnectionLocker` and in the new `ConnectionsView`. ## TODO Extract...
Moved into `webrtc` directory as the class is WebRTC-specific.
When we sort the oldContacts, we should sort all contacts, not just a subset? In practice the oldContacts array length is already limited by the `numberOfNodesPerKBucket` (see `PeerManager.ts:82`), so there...
Based on https://github.com/streamr-dev/network/pull/2507, merge that first. See comment in a previous PR: https://github.com/streamr-dev/network/pull/2507#issuecomment-2069273895
* Add geoip-location package that can map an ip address to latitude and longitude using MaxMind's GeoLite City database * If "geoIpDatabaseFolder" config variable is given to DhtNode, use geoip-location...
Renamed `PeerManager#closestContacts` -> `nearbyContacts`. This way we can separate the concepts of: - nearby contacts (all currently known nodes having short Kademlia distance to this node) - closest contacts/neighbors/etc. (a...