Skip to content

Commit c59e3a3

Browse files
committed
getrawtransaction: inform about blockhash argument when lookup fails
1 parent 8a503a6 commit c59e3a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rpc/rawtransaction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ static UniValue getrawtransaction(const JSONRPCRequest& request)
196196
}
197197
errmsg = "No such transaction found in the provided block";
198198
} else if (!g_txindex) {
199-
errmsg = "No such mempool transaction. Use -txindex to enable blockchain transaction queries";
199+
errmsg = "No such mempool transaction. Use -txindex or provide a block hash to enable blockchain transaction queries";
200200
} else if (!f_txindex_ready) {
201201
errmsg = "No such mempool transaction. Blockchain transactions are still in the process of being indexed";
202202
} else {

0 commit comments

Comments
 (0)