diff options
author | darosior <darosior@gmail.com> | 2019-03-01 17:06:27 +0100 |
---|---|---|
committer | darosior <darosior@protonmail.com> | 2019-09-05 15:11:48 +0200 |
commit | 6564f58c87a84c88d07629e9d86e15f07d0ed837 (patch) | |
tree | d503b9c772a8ba8d6dfc1d17b7048f5ec2602fd0 /src/rpc/util.h | |
parent | 6519be605480fec95dcd814771038efcb1ad2abe (diff) |
rpc/net: decode the services flags in a new entry
Diffstat (limited to 'src/rpc/util.h')
-rw-r--r-- | src/rpc/util.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rpc/util.h b/src/rpc/util.h index 4c3322b879..72fc7b6286 100644 --- a/src/rpc/util.h +++ b/src/rpc/util.h @@ -8,6 +8,7 @@ #include <node/transaction.h> #include <outputtype.h> #include <pubkey.h> +#include <protocol.h> #include <rpc/protocol.h> #include <rpc/request.h> #include <script/script.h> @@ -90,6 +91,9 @@ std::pair<int64_t, int64_t> ParseDescriptorRange(const UniValue& value); /** Evaluate a descriptor given as a string, or as a {"desc":...,"range":...} object, with default range of 1000. */ std::vector<CScript> EvalDescriptorStringOrObject(const UniValue& scanobject, FlatSigningProvider& provider); +/** Returns, given services flags, a list of humanly readable (known) network services */ +UniValue GetServicesNames(ServiceFlags services); + struct RPCArg { enum class Type { OBJ, |