gossipsub: add slack before attempting to re-graft after being pruned.

This commit is contained in:
Raúl Kripalani
2020-08-10 12:18:16 +01:00
committed by Raúl Kripalani
parent e2f2a4b4d3
commit 5a6e154d7e

View File

@@ -98,7 +98,8 @@ for the action, and penalize the peer through P₇ (see [Peer Scoring](#peer-sco
The recommended duration for the backoff period is 1 minute, while the recommended number of peers
to exchange is larger than `D_hi` so that the pruned peer can reliably form a full mesh.
In order to correctly synchronize the two peers, the pruning peer should include the backoff period
in the PRUNE message. The peer has to wait the full backoff period before attempting to graft again,
in the PRUNE message. The peer has to wait the full backoff period before attempting to graft again
—plus some slack to account for the offset until the next heartbeat that clears the backoff—
otherwise it risks getting its graft rejected and being penalized in its score if it attempts to
graft too early.