Refactored sync and recovery logic in both the node and the wallet, allowing for simpler and more reliable monitoring of UTXO status for both mined and received UTXOs