![]() |
Bitcoin Core 31.1.0
P2P Digital Currency
|
#include <net_types.h>#include <logging.h>#include <netaddress.h>#include <netbase.h>#include <univalue.h>Go to the source code of this file.
Functions | |
| UniValue | BanMapToJson (const banmap_t &bans) |
| Convert a banmap_t object to a JSON array. | |
| void | BanMapFromJson (const UniValue &bans_json, banmap_t &bans) |
| Convert a JSON array to a banmap_t object. | |
Variables | |
| static const char * | BANMAN_JSON_VERSION_KEY {"version"} |
| 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 58 of file net_types.cpp.
Convert a banmap_t object to a JSON array.
| [in] | bans | Bans list to convert. |
Definition at line 38 of file net_types.cpp.
|
static |
Definition at line 30 of file net_types.cpp.
|
static |
Definition at line 12 of file net_types.cpp.