-
Notifications
You must be signed in to change notification settings - Fork 291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhance P2P Streams with Reserved Stream Replacement #4826
base: dev
Are you sure you want to change the base?
Conversation
i was testing this one by doing :
at restart i faced the below error
|
The issue you mentioned seems related to |
if it is not merged how do i have the error ? |
i did it twice and faced the same error twice. Maybe you can try on your end ? |
here is the staged sync folder in dev branch and there is no such file there: |
ok my bad i mixed the PR the error above is for #4824 |
This PR introduces a new feature to the Harmony P2P stream management system: a reserved stream list. The reserved stream list acts as a backup pool of pre-established streams, ensuring that peer connections can be replaced immediately whenever a stream is removed due to invalid data, connectivity issues, or other disruptions. This improvement eliminates the need to go through the discovery process to find new peers, resulting in faster recovery and maintaining stable network operations.
The core functionality allows the stream manager to replace removed streams with available streams from the reserved list. By doing so, the system ensures that the number of connected peers remains sufficient to support syncing and consensus processes without interruptions. This mechanism is particularly advantageous in larger networks with numerous peers, where traditional peer discovery methods may take longer and introduce delays. This approach not only reduces the risk of disruptions in syncing and consensus but also ensures that the network remains resilient and responsive.
This PR lays the groundwork for future optimizations, such as dynamically adjusting the size of the reserved list based on network conditions or further refining stream management to handle edge cases more effectively.