1 suggestion
Optional improvements
[suggestion] · Direct broadcasts leave spent inputs in MiniWallet
The direct RPC broadcast leaves child_mixed's spent inputs selectable in MiniWallet until the next test's final rescan, although current selections avoid them.
Location: test/functional/feature_bip68_sequence.py:433 (head).
Details and suggested fix
create_self_transfer_multi receives explicit inputs here, so it does not remove them from MiniWallet. Calling node.sendrawtransaction then bypasses scan_tx, leaving both inputs in _utxos. Node-based mining and chain synchronization do not refresh this list, so the stale entries persist until the rescan at the end of test_reorg_unsatisfied_lock_evicted. Current implicit selections use confirmed_only=True, which excludes these zero-confirmation entries. A future default get_utxo() in this interval could select a spent outpoint, depending on the remaining inventory, and cause a subsequent submission to fail. Use self.wallet.sendrawtransaction(from_node=node, tx_hex=child_mixed["hex"]), and the same wrapper for mixed below, to update the input/output bookkeeping without changing the transactions or BIP68 assertions.