Is there an existing issue for this?
- I have searched the existing issues
Current behaviour
The two fields about TXID replacement in gettransaction
currently says this:
0 "replaced_by_txid" : "hex", (string, optional) The txid if this tx was replaced.
1 "replaces_txid" : "hex", (string, optional) The txid if the tx replaces one.
From looking at the code it appears these fields are only set if the TXs in question are replaced by the wallet itself. This was not obvious to me.
Expected behaviour
I’d expect the documentation to mention that these fields are only set for transactions that originate from the wallet, and not for transactions received into the wallet.
Steps to reproduce
- Receive a fee-bumped transaction to a Bitcoin Core wallet.
- Observe that calling
gettransaction
on that transaction does not include thereplaced_by_txid
orreplaces_txid
fields.
Relevant log output
No response
How did you obtain Bitcoin Core
Pre-built binaries
What version of Bitcoin Core are you using?
v24.0.1
Operating system and version
MacOS Ventura 13.2.1
Machine specifications
No response