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

This commit is contained in:
ishaanam
2023-11-26 13:43:17 -05:00
parent 20802c7b65
commit aac0b6dd79
2 changed files with 29 additions and 0 deletions

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)