aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/server.h
diff options
context:
space:
mode:
authorRussell Yanofsky <[email protected]>2017-01-17 10:40:41 -0500
committerRussell Yanofsky <[email protected]>2017-01-19 11:29:29 -0500
commit52dde66770d833ee5e42e7c5fee610453ae3852a (patch)
tree1cb223500d2737ffe81a3578df430e27ffaca8e7 /src/rpc/server.h
parent[wallet] Add IsAllFromMe: true if all inputs are from wallet (diff)
downloaddiscoin-52dde66770d833ee5e42e7c5fee610453ae3852a.tar.xz
discoin-52dde66770d833ee5e42e7c5fee610453ae3852a.zip
[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 fed3d8c90..52f82866d 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.
*/