mirror of
https://github.com/QuilibriumNetwork/ceremonyclient.git
synced 2026-02-21 10:27:26 +08:00
Prune only if meshed (#362)
This commit is contained in:
parent
bc05a4d7b9
commit
b94e123262
@ -957,9 +957,12 @@ func (bs *BlossomSubRouter) handlePrune(p peer.ID, ctl *pb.ControlMessage) {
|
||||
continue
|
||||
}
|
||||
|
||||
log.Debugf("PRUNE: Remove mesh link to %s in %s", p, bitmask)
|
||||
bs.tracer.Prune(p, bitmask)
|
||||
delete(peers, p)
|
||||
if _, inMesh := peers[p]; inMesh {
|
||||
log.Debugf("PRUNE: Remove mesh link to %s in %s", p, bitmask)
|
||||
bs.tracer.Prune(p, bitmask)
|
||||
delete(peers, p)
|
||||
}
|
||||
|
||||
// is there a backoff specified by the peer? if so obey it.
|
||||
backoff := prune.GetBackoff()
|
||||
if backoff > 0 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user