wallet, rpc: add anti-fee-sniping to send and sendall

This commit is contained in:
ishaanam committed 2025-06-25 11:55:46 -04:00
1 parent fed41b75fb
commit 20802c7b65
4 files changed
+26 -10

No files matched your search

+1 -1
View File
@@ -53,7 +53,7 @@ class WalletRescanUnconfirmed(BitcoinTestFramework):
# The only UTXO available to spend is tx_parent_to_reorg.
assert_equal(len(w0_utxos), 1)
assert_equal(w0_utxos[0]["txid"], tx_parent_to_reorg["txid"])
tx_child_unconfirmed_sweep = w0.sendall([ADDRESS_BCRT1_UNSPENDABLE])
tx_child_unconfirmed_sweep = w0.sendall(recipients=[ADDRESS_BCRT1_UNSPENDABLE], options={"locktime":0})
assert tx_child_unconfirmed_sweep["txid"] in node.getrawmempool()
node.syncwithvalidationinterfacequeue()