(require("kadence/churnfilter"))(optionsopt)

Registers a module:kadence/contentaddress~ChurnFilterPlugin with a KademliaNode

Parameters:
NameTypeAttributesDescription
optionsobject<optional>
Properties
NameTypeAttributesDefaultDescription
cooldownMultipliernumber<optional>
2

Multiply cooldown time by this number after every offense

cooldownResetTimestring<optional>
"60M"

Human time string for resetting the cooldown multiplier after no block added for a given peer fingerprint

cooldownBaseTimeoutstring<optional>
"5M"

Human time string for starting timeout, multiplied by two every time the cooldown is reset and broken again

Classes

ChurnFilterPlugin