Skip to content

Commit

Permalink
getrawtransaction: inform about blockhash argument when lookup fails
Browse files Browse the repository at this point in the history
  • Loading branch information
darosior committed Jun 14, 2019
1 parent 8a503a6 commit c59e3a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rpc/rawtransaction.cpp
Expand Up @@ -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 {
Expand Down

0 comments on commit c59e3a3

Please sign in to comment.