aboutsummaryrefslogtreecommitdiff
path: root/src/bitcoinrpc.h
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2012-08-20 16:18:17 -0400
committerGavin Andresen <gavinandresen@gmail.com>2012-08-20 17:19:13 -0400
commitcc6dfd1f4b7709447c6e2b73ebf44946d0b926c5 (patch)
tree1191830d95c49464b3992964528ddbd3b67f97f2 /src/bitcoinrpc.h
parentb86da2abe8695640698d45b1288a2951b7b3dfcb (diff)
downloadbitcoin-cc6dfd1f4b7709447c6e2b73ebf44946d0b926c5.tar.xz
Allow signrawtransaction '...' null null 'hashtype'
Allows the user to pass null as the second or third parameter to signrawtransaction, in case you need to (for example) fetch private keys from the wallet but want to specify the hash type.
Diffstat (limited to 'src/bitcoinrpc.h')
-rw-r--r--src/bitcoinrpc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bitcoinrpc.h b/src/bitcoinrpc.h
index b71d17ef29..40e7d7e11c 100644
--- a/src/bitcoinrpc.h
+++ b/src/bitcoinrpc.h
@@ -28,13 +28,13 @@ json_spirit::Array RPCConvertValues(const std::string &strMethod, const std::vec
Use like: RPCTypeCheck(params, boost::assign::list_of(str_type)(int_type)(obj_type));
*/
void RPCTypeCheck(const json_spirit::Array& params,
- const std::list<json_spirit::Value_type>& typesExpected);
+ const std::list<json_spirit::Value_type>& typesExpected, bool fAllowNull=false);
/*
Check for expected keys/value types in an Object.
Use like: RPCTypeCheck(object, boost::assign::map_list_of("name", str_type)("value", int_type));
*/
void RPCTypeCheck(const json_spirit::Object& o,
- const std::map<std::string, json_spirit::Value_type>& typesExpected);
+ const std::map<std::string, json_spirit::Value_type>& typesExpected, bool fAllowNull=false);
typedef json_spirit::Value(*rpcfn_type)(const json_spirit::Array& params, bool fHelp);