test: test sendall and send do anti-fee-sniping

This commit is contained in:
ishaanam committed 2025-06-25 11:56:07 -04:00
1 parent 20802c7b65
commit aac0b6dd79
2 files changed
+29

No files matched your search

+5
View File
@@ -140,7 +140,12 @@ class WalletSendTest(BitcoinTestFramework):
return
if locktime:
assert_equal(from_wallet.gettransaction(txid=res["txid"], verbose=True)["decoded"]["locktime"], locktime)
return res
else:
if add_to_wallet:
decoded_tx = from_wallet.gettransaction(txid=res["txid"], verbose=True)["decoded"]
assert_greater_than(decoded_tx["locktime"], from_wallet.getblockcount() - 100)
if from_wallet.getwalletinfo()["private_keys_enabled"] and not include_watching:
assert_equal(res["complete"], True)