-
Notifications
You must be signed in to change notification settings - Fork 291
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve P2P Stream Handling & Stream Sync Enhancements (#4762)
* remove error logs if stream already exist * improve pickAvailableStream to continue looking for other available streams if any stream fails * add thread safe map to request manager in p2p stream layer * improve stream sync switching from long range to short range * improve context for doSync loop in stream sync * add error handling for context deadline exceed issue * fix request manager test * improve computeLongestHashChain and its whitelist * improve countHashMaxVote * introduce new configs to StagedStreamSync struct * initialize new configs in stream sync and add them to logs * pass node config to stream sync downloader, increase stream sync ticker time, init sync if not epoch chain * add two new metrics to stream sync * pass node configs to service and downloaders to have access to node configurations in stream sync * using BeaconValidator and BecaonShard instead of BeaconNode, using EpochChain config to detect epochcian in stages, add acceptPartially to GetBlockHash to be able to get a part of hashes * pass nodeconfig to downloaders * remove BeaconNode from protocol, fix shortrange tests * improve lock in request manager test * update Failures option names, remove beaconNode from stream protocol * fix shard id detection * improve getBlockByMaxVote * add one more checking for prestaking * improve epoch and beacon node detection for stream sync * fix passing roles to sync protocol * remove nil error from logs * fix switch between long range and short range in stream sync * fix stream sync slowness * improve short range helpers concurrency * stop readMsgLoop once stream is closed * stop discovery loop once stream manager is closing * fix peer id in stream manager logs * separate stream set and stream manager
- Loading branch information
1 parent
8561e05
commit 2274c29
Showing
42 changed files
with
716 additions
and
476 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.