snarkOS icon indicating copy to clipboard operation
snarkOS copied to clipboard

Do not disconnect from synced peers

Open kyle-u410 opened this issue 1 year ago • 0 comments

🚀 Feature

When snarkOS does a periodic refresh of peers, only select peers that are in sync when there are more than one.

Motivation

When only some peers are caught up with chain, it could be that only one or two peers can help keep snarkOS in sync. When these peers are removed due to periodic refresh, then the current node becomes out of sync. The periodic cycling is good, but the loss of only peer that is in sync is bad. So only remove an in sync peer when there are a number of them in the peer list.

kyle-u410 avatar Jan 22 '24 16:01 kyle-u410