LiskArchive / lisk-engine

:bullettrain_front: Lisk blockchain engine
https://lisk.com
Apache License 2.0
0 stars 0 forks source link

Improve managing connections to peers #63

Closed matjazv closed 1 year ago

matjazv commented 1 year ago

Description

If the number of connections exceeds the maximum allowed number of connections, some of those connections need to be closed. To manage such connections a Connection manager from libp2p may be used.

If the number of connections drops below the minimum number of connections, try to connect to some of the known peers manually without libp2p or gossipsub assistance.

To prevent an indefinite amount of time to be connected with any of non-fixed peers, randomly close connection at predefined time intervals.

Acceptance Criteria

Additional Information