forked from jl777/SuperNET
-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(p2p): ensure time synchronization in the network (#2255)
* add time validation core logic Signed-off-by: onur-ozkan <[email protected]> * nit fixes Signed-off-by: onur-ozkan <[email protected]> * handle time gap Signed-off-by: onur-ozkan <[email protected]> * improve logging Signed-off-by: onur-ozkan <[email protected]> * add more trackable processing logs Signed-off-by: onur-ozkan <[email protected]> * improve info log and remove debugging leftover Signed-off-by: onur-ozkan <[email protected]> * rename `NetworkInfoRequest` to `PeerInfoRequest` Signed-off-by: onur-ozkan <[email protected]> * handle recently dialed peers Signed-off-by: onur-ozkan <[email protected]> * add useful logs Signed-off-by: onur-ozkan <[email protected]> * create function for pre-dial check Signed-off-by: onur-ozkan <[email protected]> * set max cap for timestamp channel Signed-off-by: onur-ozkan <[email protected]> * remove leftover Signed-off-by: onur-ozkan <[email protected]> * use `Multiaddr` as key Signed-off-by: onur-ozkan <[email protected]> * fix p2p tests Signed-off-by: onur-ozkan <[email protected]> * update logs Signed-off-by: onur-ozkan <[email protected]> * rename leftovers Signed-off-by: onur-ozkan <[email protected]> * update timing values Signed-off-by: onur-ozkan <[email protected]> * minor fixes Signed-off-by: onur-ozkan <[email protected]> * update pre dial check calls Signed-off-by: onur-ozkan <[email protected]> * apply nit fixes Signed-off-by: onur-ozkan <[email protected]> * don't update existing expiries Signed-off-by: onur-ozkan <[email protected]> * revert breakage Signed-off-by: onur-ozkan <[email protected]> --------- Signed-off-by: onur-ozkan <[email protected]>
- Loading branch information
1 parent
fe5a274
commit 87be260
Showing
11 changed files
with
178 additions
and
42 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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.