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
A wallet tracking SegWit transactions receives a wtxid from a peer. To inspect the transaction, they currently have no direct way to look it up — they’d need to iterate the entire mempool to find the matching txid. With this change, they can call getrawtransaction directly with the wtxid.
Closes #34013