aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/server.h
diff options
context:
space:
mode:
authorRussell Yanofsky <russ@yanofsky.org>2017-01-17 10:40:41 -0500
committerRussell Yanofsky <russ@yanofsky.org>2017-01-19 11:29:29 -0500
commit52dde66770d833ee5e42e7c5fee610453ae3852a (patch)
tree1cb223500d2737ffe81a3578df430e27ffaca8e7 /src/rpc/server.h
parent766e8a40b478353a89622f42809ddb11e695a0c9 (diff)
downloadbitcoin-52dde66770d833ee5e42e7c5fee610453ae3852a.tar.xz
[wallet] Add include_unsafe argument to listunspent RPC
Diffstat (limited to 'src/rpc/server.h')
-rw-r--r--src/rpc/server.h5
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.
*/