-txospenderindexenables the creation of a transaction output spender index that, if present, will be scanned bygettxspendingprevoutif a spending transaction was not found in the mempool. (#24539)
gettxspendingprevouthas 2 new optional arguments:mempool_onlyandreturn_spending_tx. Ifmempool_onlyis true it will limit scans to the mempool even iftxospenderindexis available. Ifreturn_spending_txis true, the full spending tx will be returned. In addition iftxospenderindexis available and a confirmed spending transaction is found, its block hash will be returned. (#24539)