![]() |
Bitcoin Core 22.99.0
P2P Digital Currency
|
Go to the source code of this file.
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... | |
Variables | |
| static const char * | BANMAN_JSON_ADDR_KEY = "address" |
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.
|
static |
Definition at line 26 of file net_types.cpp.