aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/rawtransaction.cpp
diff options
context:
space:
mode:
authorJameson Lopp <jameson@team.casa>2021-07-01 10:17:28 -0400
committerJameson Lopp <jameson.lopp@gmail.com>2021-07-03 07:31:27 -0400
commit78f4c8b98eada337346ffb206339c3ebae4ff43b (patch)
tree5f08795aaacdf50ee7cf7d5481d5f0173fbaab20 /src/rpc/rawtransaction.cpp
parent2749613020ed96a4e9204f8b98c44524b0a62d0d (diff)
downloadbitcoin-78f4c8b98eada337346ffb206339c3ebae4ff43b.tar.xz
prefer to use txindex if available for GetTransaction
Fixes #22382
Diffstat (limited to 'src/rpc/rawtransaction.cpp')
-rw-r--r--src/rpc/rawtransaction.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/rpc/rawtransaction.cpp b/src/rpc/rawtransaction.cpp
index ccb3123714..30addf8af6 100644
--- a/src/rpc/rawtransaction.cpp
+++ b/src/rpc/rawtransaction.cpp
@@ -74,12 +74,10 @@ static RPCHelpMan getrawtransaction()
"getrawtransaction",
"\nReturn the raw transaction data.\n"
- "\nBy default this function only works for mempool transactions. When called with a blockhash\n"
- "argument, getrawtransaction will return the transaction if the specified block is available and\n"
- "the transaction is found in that block. When called without a blockhash argument, getrawtransaction\n"
- "will return the transaction if it is in the mempool, or if -txindex is enabled and the transaction\n"
- "is in a block in the blockchain.\n"
-
+ "\nBy default, this call only returns a transaction if it is in the mempool. If -txindex is enabled\n"
+ "and no blockhash argument is passed, it will return the transaction if it is in the mempool or any block.\n"
+ "If -txindex is not enabled and a blockhash argument is passed, it will return the transaction if\n"
+ "the specified block is available and the transaction is found in that block.\n"
"\nHint: Use gettransaction for wallet transactions.\n"
"\nIf verbose is 'true', returns an Object with information about 'txid'.\n"