Constructor
new ChurnFilterPlugin(node, optionsopt)
Name | Type | Attributes | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
node | AbstractNode | ||||||||||||||||||||||
options | object | <optional> | Properties
|
- Source
Methods
delBlock(fingerprint)
Deletes the blocked fingerprint
Name | Type | Description |
---|---|---|
fingerprint | string | | Node ID to remove block |
- Source
hasBlock(fingerprint) → {boolean}
Checks if the fingerprint is blocked
Name | Type | Description |
---|---|---|
fingerprint | string | | Node ID to check |
- Source
- Type:
- boolean
reset()
Clears all blocked and cooldown data
- Source
resetCooldownForStablePeers()
Releases blocked to reset cooldown multipliers for fingerprints with cooldowns that are long expired and not blocked
- Source
setBlock(fingerprint) → {object}
Creates a new block or renews the cooldown for an existing block
Name | Type | Description |
---|---|---|
fingerprint | string | | Node ID to block |
- Source
- Type:
- object