mirror of
https://source.quilibrium.com/quilibrium/ceremonyclient.git
synced 2024-11-10 18:25:17 +00:00
fix: consider message failures and timeouts to also be uncooperative
This commit is contained in:
parent
b4ad1aed18
commit
520d6562f9
@ -930,6 +930,10 @@ func (e *CeremonyDataClockConsensusEngine) collect(
|
||||
"error while retrieving sync",
|
||||
zap.Error(err),
|
||||
)
|
||||
e.peerMapMx.Lock()
|
||||
e.uncooperativePeersMap[string(peerId)] = e.peerMap[string(peerId)]
|
||||
delete(e.peerMap, string(peerId))
|
||||
e.peerMapMx.Unlock()
|
||||
} else {
|
||||
var syncMsg *protobufs.CeremonyCompressedSync
|
||||
for syncMsg, err = s.Recv(); err == nil; syncMsg, err = s.Recv() {
|
||||
|
Loading…
Reference in New Issue
Block a user