From 57e1716de6a6deba23ad8c4152cc0a32a4974c41 Mon Sep 17 00:00:00 2001 From: Benedict Chan Date: Sun, 7 Sep 2014 12:37:13 +0000 Subject: update rpc help message for gettransaction to add includeWatchonly param --- src/rpcwallet.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/rpcwallet.cpp b/src/rpcwallet.cpp index 997b861e59..9e345d74fa 100644 --- a/src/rpcwallet.cpp +++ b/src/rpcwallet.cpp @@ -1490,7 +1490,7 @@ Value gettransaction(const Array& params, bool fHelp) { if (fHelp || params.size() < 1 || params.size() > 2) throw runtime_error( - "gettransaction \"txid\"\n" + "gettransaction \"txid\" ( includeWatchonly )\n" "\nGet detailed information about in-wallet transaction \n" "\nArguments:\n" "1. \"txid\" (string, required) The transaction id\n" @@ -1520,6 +1520,7 @@ Value gettransaction(const Array& params, bool fHelp) "\nExamples:\n" + HelpExampleCli("gettransaction", "\"1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d\"") + + HelpExampleCli("gettransaction", "\"1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d\" true") + HelpExampleRpc("gettransaction", "\"1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d\"") ); -- cgit v1.2.3 From 1a613963e1567fd6102e783422cc6cad672dd1a5 Mon Sep 17 00:00:00 2001 From: Benedict Chan Date: Sun, 7 Sep 2014 12:38:42 +0000 Subject: fix missing gettransaction entries in rpcclient --- src/rpcclient.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/rpcclient.cpp b/src/rpcclient.cpp index 81797248b4..05e54dcbf6 100644 --- a/src/rpcclient.cpp +++ b/src/rpcclient.cpp @@ -67,6 +67,7 @@ static const CRPCConvertParam vRPCConvertParams[] = { "listunspent", 1 }, { "listunspent", 2 }, { "getblock", 1 }, + { "gettransaction", 1 }, { "getrawtransaction", 1 }, { "createrawtransaction", 0 }, { "createrawtransaction", 1 }, -- cgit v1.2.3