mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-16 03:43:04 +02:00
getrawtransaction: inform about blockhash argument when lookup fails
This commit is contained in:
parent
8a503a6c6d
commit
c59e3a3261
@ -196,7 +196,7 @@ static UniValue getrawtransaction(const JSONRPCRequest& request)
|
|||||||
}
|
}
|
||||||
errmsg = "No such transaction found in the provided block";
|
errmsg = "No such transaction found in the provided block";
|
||||||
} else if (!g_txindex) {
|
} 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) {
|
} else if (!f_txindex_ready) {
|
||||||
errmsg = "No such mempool transaction. Blockchain transactions are still in the process of being indexed";
|
errmsg = "No such mempool transaction. Blockchain transactions are still in the process of being indexed";
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user