Tracks banned and discouraged peers.
Synopsis
Declared in <banman.h>
class BanMan;
Member Functions
Name |
Description |
|
Constructs the ban manager and loads any existing banlist from disk. |
|
Flushes the banlist to disk if dirty and destroys the manager. |
|
|
Removes all bans from memory and marks the banlist dirty. |
|
Marks an address as discouraged, preferring it for eviction. |
|
Writes the current banlist to disk. |
|
Copies the current set of bans into the given map. |
|
|
|
Return whether net_addr is discouraged. |
|
|
Non-Member Functions
Name |
Description |
Get the ban manager from an opaque RPC context, asserting it is present. |
|
Get the ban manager from a node context, asserting it is present. |
Created with MrDocs