plumtree / org.apache.tuweni.plumtree / PeerPruning

PeerPruning

interface PeerPruning (source)

Interface to decide whether to prune peers when they send messages late. Pruned peers become "lazy peers". They send message attestations (IHAVE).

Functions

prunePeer

abstract fun prunePeer(peer: Peer): Boolean

Decides whether to prune a peer