diff options
| author | Luke Dashjr <[email protected]> | 2013-06-07 05:23:30 +0000 |
|---|---|---|
| committer | Luke Dashjr <[email protected]> | 2013-06-07 17:44:39 +0000 |
| commit | 23319521418691ddfcb228684c900c389f3f114d (patch) | |
| tree | 3eee9d8dc7e5b0d7f3be7c9106294ae535fd640f /src/bitcoinrpc.cpp | |
| parent | 0.7.1 release notes (diff) | |
| download | discoin-23319521418691ddfcb228684c900c389f3f114d.tar.xz discoin-23319521418691ddfcb228684c900c389f3f114d.zip | |
RPC: getblock(): Accept 2nd "verbose" parameter, similar to getrawtransaction, but defaulting to 1 for backward compatibility
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 0704173e5..d82a382c4 100644 --- a/src/bitcoinrpc.cpp +++ b/src/bitcoinrpc.cpp @@ -1161,6 +1161,7 @@ Array RPCConvertValues(const std::string &strMethod, const std::vector<std::stri 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 == "getblock" && n > 1) ConvertTo<bool>(params[1]); 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]); |