diff options
author | Russell Yanofsky <russ@yanofsky.org> | 2017-01-17 10:40:41 -0500 |
---|---|---|
committer | Russell Yanofsky <russ@yanofsky.org> | 2017-01-19 11:29:29 -0500 |
commit | 52dde66770d833ee5e42e7c5fee610453ae3852a (patch) | |
tree | 1cb223500d2737ffe81a3578df430e27ffaca8e7 /src/rpc/server.h | |
parent | 766e8a40b478353a89622f42809ddb11e695a0c9 (diff) |
[wallet] Add include_unsafe argument to listunspent RPC
Diffstat (limited to 'src/rpc/server.h')
-rw-r--r-- | src/rpc/server.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rpc/server.h b/src/rpc/server.h index fed3d8c90f..52f82866dc 100644 --- a/src/rpc/server.h +++ b/src/rpc/server.h @@ -78,6 +78,11 @@ bool RPCIsInWarmup(std::string *statusOut); void RPCTypeCheck(const UniValue& params, const std::list<UniValue::VType>& typesExpected, bool fAllowNull=false); +/** + * Type-check one argument; throws JSONRPCError if wrong type given. + */ +void RPCTypeCheckArgument(const UniValue& value, UniValue::VType typeExpected); + /* Check for expected keys/value types in an Object. */ |