diff options
| author | Gregory Maxwell <[email protected]> | 2012-08-06 13:02:48 -0400 |
|---|---|---|
| committer | Gregory Maxwell <[email protected]> | 2012-08-23 15:55:50 -0400 |
| commit | 92735bca313768dbc49789566c47e3a68ecef59a (patch) | |
| tree | bc5f0fa10286a0a9122296441c92126648e2c6fa /src/bitcoinrpc.cpp | |
| parent | Add address groupings RPC from the coincontrol patches. (diff) | |
| download | discoin-92735bca313768dbc49789566c47e3a68ecef59a.tar.xz discoin-92735bca313768dbc49789566c47e3a68ecef59a.zip | |
Add txout address filtering to listunspent.
This applies on top of the coincontrol listaddressgroupings patch
and makes finding eligible outputs from the groups returned
by listaddressgroupings possible.
Diffstat (limited to 'src/bitcoinrpc.cpp')
| -rw-r--r-- | src/bitcoinrpc.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bitcoinrpc.cpp b/src/bitcoinrpc.cpp index ebde28fe0..c144f5fba 100644 --- a/src/bitcoinrpc.cpp +++ b/src/bitcoinrpc.cpp @@ -1140,6 +1140,7 @@ Array RPCConvertValues(const std::string &strMethod, const std::vector<std::stri if (strMethod == "addmultisigaddress" && n > 1) ConvertTo<Array>(params[1]); if (strMethod == "listunspent" && n > 0) ConvertTo<boost::int64_t>(params[0]); if (strMethod == "listunspent" && n > 1) ConvertTo<boost::int64_t>(params[1]); + if (strMethod == "listunspent" && n > 2) ConvertTo<Array>(params[2]); if (strMethod == "getrawtransaction" && n > 1) ConvertTo<boost::int64_t>(params[1]); if (strMethod == "createrawtransaction" && n > 0) ConvertTo<Array>(params[0]); if (strMethod == "createrawtransaction" && n > 1) ConvertTo<Object>(params[1]); |