Make best-effort to blind desired outputs, fail or return depending on ignoreblindfail arguments.

This commit is contained in:
Gregory Sanders 2017-04-25 11:55:41 -04:00
parent f63aa69a16
commit 8ef102a035
6 changed files with 188 additions and 56 deletions

View file

@ -41,6 +41,7 @@ static const CRPCConvertParam vRPCConvertParams[] =
{ "sendtoaddress", 1, "amount" },
{ "sendtoaddress", 4, "subtractfeefromamount" },
{ "settxfee", 0, "amount" },
{ "sendtoaddress", 6, "ignoreblindfail" },
{ "getreceivedbyaddress", 1, "minconf" },
{ "destroyamount", 1, "amount" },
{ "getreceivedbyaccount", 1, "minconf" },
@ -86,6 +87,7 @@ static const CRPCConvertParam vRPCConvertParams[] =
{ "getrawtransaction", 1, "verbose" },
{ "rawblindrawtransaction", 1, "inputblinder" },
{ "blindrawtransaction", 1, "assetcommitments" },
{ "blindrawtransaction", 2, "ignoreblindfail" },
{ "createrawtransaction", 0, "inputs" },
{ "createrawtransaction", 1, "outputs" },
{ "dumpissuanceblindingkey", 1, "vin" },