add rpccryptoconditions

This commit is contained in:
Scott Sadler
2017-10-21 23:23:57 -07:00
parent a032ddea1f
commit 342611f932
5 changed files with 936 additions and 1 deletions

View File

@@ -75,8 +75,12 @@ static const CRPCConvertParam vRPCConvertParams[] =
{ "getrawtransaction", 1 },
{ "createrawtransaction", 0 },
{ "createrawtransaction", 1 },
{ "createrawtransactioncc", 0 },
{ "createrawtransactioncc", 1 },
{ "signrawtransaction", 1 },
{ "signrawtransaction", 2 },
{ "signrawtransactioncc", 1 },
{ "signrawtransactioncc", 2 },
{ "sendrawtransaction", 1 },
{ "fundrawtransaction", 1 },
{ "gettxout", 1 },
@@ -156,7 +160,7 @@ UniValue ParseNonRFCJSONValue(const std::string& strVal)
UniValue jVal;
if (!jVal.read(std::string("[")+strVal+std::string("]")) ||
!jVal.isArray() || jVal.size()!=1)
throw runtime_error(string("Error parsing JSON:")+strVal);
throw runtime_error(string("Error JSON:")+strVal);
return jVal[0];
}