Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewP2PBlackListProcessor ¶
func NewP2PBlackListProcessor( cacher storage.Cacher, peerBlacklistCacher process.PeerBlackListCacher, thresholdNumReceivedFlood uint32, thresholdSizeReceivedFlood uint64, numFloodingRounds uint32, banDuration time.Duration, name string, selfPid core.PeerID, ) (*p2pBlackListProcessor, error)
NewP2PBlackListProcessor creates a new instance of p2pQuotaBlacklistProcessor able to determine a flooding peer and mark it accordingly TODO use argument on constructor
func NewPeerDenialEvaluator ¶ added in v1.0.133
func NewPeerDenialEvaluator( blackListIDsCache process.PeerBlackListCacher, blackListedPublicKeysCache process.TimeCacher, psm process.PeerShardMapper, ) (*peerDenialEvaluator, error)
NewPeerDenialEvaluator will create a new instance of a peer deny cache evaluator
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.