aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordarosior <darosior@protonmail.com>2019-06-14 23:00:37 +0200
committerdarosior <darosior@protonmail.com>2019-06-14 23:02:19 +0200
commitc59e3a32614e627ba2834b032d4799eb69672155 (patch)
tree9bff0491c15a55f3ff6de765bb5260dfd84d40e4
parent8a503a6c6dd419921373f45d7aa6f1787c9b8884 (diff)
getrawtransaction: inform about blockhash argument when lookup fails
-rw-r--r--src/rpc/rawtransaction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/rawtransaction.cpp b/src/rpc/rawtransaction.cpp
index 0b760439c1..df6e9f029d 100644
--- a/src/rpc/rawtransaction.cpp
+++ b/src/rpc/rawtransaction.cpp
@@ -196,7 +196,7 @@ static UniValue getrawtransaction(const JSONRPCRequest& request)
}
errmsg = "No such transaction found in the provided block";
} else if (!g_txindex) {
- errmsg = "No such mempool transaction. Use -txindex to enable blockchain transaction queries";
+ errmsg = "No such mempool transaction. Use -txindex or provide a block hash to enable blockchain transaction queries";
} else if (!f_txindex_ready) {
errmsg = "No such mempool transaction. Blockchain transactions are still in the process of being indexed";
} else {