![]() |
Bitcoin Core 22.99.0
P2P Digital Currency
|
#include <cstdint>#include <map>Go to the source code of this file.
Classes | |
| class | CBanEntry |
Typedefs | |
| using | banmap_t = std::map< CSubNet, CBanEntry > |
Functions | |
| UniValue | BanMapToJson (const banmap_t &bans) |
Convert a banmap_t object to a JSON array. More... | |
| void | BanMapFromJson (const UniValue &bans_json, banmap_t &bans) |
Convert a JSON array to a banmap_t object. More... | |
Definition at line 41 of file net_types.h.
Convert a JSON array to a banmap_t object.
| [in] | bans_json | JSON to convert, must be as returned by BanMapToJson(). |
| [out] | bans | Bans list to create from the JSON. |
| std::runtime_error | if the JSON does not have the expected fields or they contain unparsable values. |
Definition at line 54 of file net_types.cpp.
Convert a banmap_t object to a JSON array.
| [in] | bans | Bans list to convert. |
listbanned RPC. Suitable for passing to BanMapFromJson(). Definition at line 34 of file net_types.cpp.