-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a way to know if a peer is up or down in `ar_peers` by calling `ar_peers:connected_peer/1` and `ar_peers:disconnected_peer/1` functions. To know if a peer is activate, one can call `ar_peers:is_connected_peer/1` function. All connected peers are now being tagged with a timestamp with one connection is successful. This timestamp can be retrieved using `ar_peers:get_connection_timestamp/1` function. lifetime peers list did not change, but current peers list is now only displaying the active peers during the last 30 days by default. "tags" are used as simple key in `ar_peers` ets table, prefixed with the `ar_tags` atom. They are saved in the `peers` file maintained with `ar_storage` function. Modified `ar_http_iface_client:get_block_shadow/2` function to add more parameters, in particular the value used to pick a peer from peer list. Modified `ar_header_sync` module to only select active peer when synchronizing headers. Fixed a typo in `bin/console`.
- Loading branch information
humaite
committed
Oct 9, 2024
1 parent
a283bcc
commit b479bfc
Showing
11 changed files
with
219 additions
and
42 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.