3

If I have an unconfirmed transaction with a UTXO that belongs to my Bitcoin Core wallet, and that transaction is evicted from my mempool, for example due to high fee-pressure, will bitcoin-cli listunspent 0 still return the transaction?

I've tried to experiment in regtest mode. I restarted my node with -minrelaytxfee=<higher than my tx>. In this case I didn't get my tx in the response from listunspent 0, but I'm not sure this correctly mimics the scenario described above.

1 Answer 1

3

No. listunspent, even if passed 0 as the minimum number of confirmations, will not list coins created in wallet transactions that are not part of the node's mempool at this time.

Link to the relevant code in the Bitcoin Core wallet.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.