Skip to content

Commit

Permalink
Merge pull request #281 from commerceblock/createanytoaddress-fix
Browse files Browse the repository at this point in the history
createanytoaddress works only when called from python
  • Loading branch information
Nikos Kostoulas authored Mar 13, 2020
2 parents cde0e8e + 3677e79 commit f1a5abc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/rpc/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@ static const CRPCConvertParam vRPCConvertParams[] =
{ "createrawtransaction", 1, "outputs" },
{ "createrawtxoutputs", 0, "inputs" },
{ "createrawtxoutputs", 1, "outputs" },
{ "createanytoaddress", 1, "amount"},
{ "createanytoaddress", 2, "ignoreblindfail"},
{ "createanytoaddress", 3, "splitlargetxs"},
{ "createanytoaddress", 4, "balancesorttype"},
{ "createanytoaddress", 5, "allowwatchonly"},
{ "createrawrequesttx", 0, "inputs" },
{ "createrawrequesttx", 1, "outputs" },
{ "createrawbidtx", 0, "inputs" },
Expand Down
2 changes: 1 addition & 1 deletion src/wallet/rpcwallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6142,7 +6142,7 @@ static const CRPCCommand commands[] =
{ "wallet", "claimethpegin", &claimethpegin, true, {"txid", "amount", "claim_pubkey"}},
{ "wallet", "createrawethpegin", &createrawethpegin, true, {"txid", "amount", "claim_pubkey"}},
{ "wallet", "claimpegin", &claimpegin, false, {"bitcoinT", "txoutproof", "claim_script"} },
{ "wallet", "createanytoaddress", &createanytoaddress, false, {"address", "amount", "ignoreblindfail", "splitlargetxs", "balancesorttype"}},
{ "wallet", "createanytoaddress", &createanytoaddress, false, {"address", "amount", "ignoreblindfail", "splitlargetxs", "balancesorttype", "allowwatchonly"}},
{ "wallet", "createrawpegin", &createrawpegin, false, {"bitcoinT", "txoutproof", "claim_script"} },
{ "wallet", "getaccountaddress", &getaccountaddress, true, {"account"} },
{ "wallet", "getaccount", &getaccount, true, {"address"} },
Expand Down

0 comments on commit f1a5abc

Please sign in to comment.