#include <net_types.h>
#include <logging.h>
#include <netaddress.h>
#include <netbase.h>
#include <univalue.h>
Go to the source code of this file.
◆ BanMapFromJson()
Convert a JSON array to a banmap_t
object.
- Parameters
-
[in] | bans_json | JSON to convert, must be as returned by BanMapToJson() . |
[out] | bans | Bans list to create from the JSON. |
- Exceptions
-
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.
◆ BanMapToJson()
Convert a banmap_t
object to a JSON array.
- Parameters
-
[in] | bans | Bans list to convert. |
- Returns
- a JSON array, similar to the one returned by the
listbanned
RPC. Suitable for passing to BanMapFromJson()
.
Definition at line 38 of file net_types.cpp.
◆ BANMAN_JSON_ADDR_KEY
const char* BANMAN_JSON_ADDR_KEY = "address" |
|
static |
◆ BANMAN_JSON_VERSION_KEY
const char* BANMAN_JSON_VERSION_KEY {"version"} |
|
static |