getrawtransaction() now accepts a wtxid in addition to a txid. If the initial txid lookup fails, the hash is retried as a wtxid against the mempool. Wtxid lookup is mempool-only since the txindex indexes by txid.
Use case
If you have a wtxid and want to look up the transaction, there’s currently no way to do it without scanning the whole mempool. To find a transaction by wtxid, you’d have to call getrawmempool true and iterate through every result to match it. There’s no direct lookup.
This adds wtxid lookup support to getrawtransaction.
Closes #34013