blackList

package
v1.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL