diff --git a/test/functional/p2p_tx_privacy.py b/test/functional/p2p_tx_privacy.py index e674f6c3eb..271be526d2 100755 --- a/test/functional/p2p_tx_privacy.py +++ b/test/functional/p2p_tx_privacy.py @@ -20,6 +20,8 @@ 5. tx_originator sends tx2 6. We check that only tx2 is announced on the spy interface """ +from decimal import Decimal + from test_framework.messages import ( msg_wtxidrelay, msg_verack, @@ -59,14 +61,14 @@ def run_test(self): spy.wait_for_verack() # tx_originator sends tx1 - tx1 = self.wallet.create_self_transfer()["tx"] + tx1 = self.wallet.create_self_transfer(fee_rate=Decimal("0.004"))["tx"] tx_originator.send_and_ping(msg_tx(tx1)) # Spy sends the verack spy.send_and_ping(msg_verack()) # tx_originator sends tx2 - tx2 = self.wallet.create_self_transfer()["tx"] + tx2 = self.wallet.create_self_transfer(fee_rate=Decimal("0.004"))["tx"] tx_originator.send_and_ping(msg_tx(tx2)) # Spy should only get an inv for the second transaction as the first diff --git a/test/functional/wallet_basic.py b/test/functional/wallet_basic.py index 139bfb4555..965609ce3b 100755 --- a/test/functional/wallet_basic.py +++ b/test/functional/wallet_basic.py @@ -800,7 +800,7 @@ def test_chain_listunspent(self): watch_wallet.importaddress(self.wallet.get_address()) # DEFAULT_ANCESTOR_LIMIT transactions off a confirmed tx should be fine - chain = self.wallet.create_self_transfer_chain(chain_length=DEFAULT_ANCESTOR_LIMIT) + chain = self.wallet.create_self_transfer_chain(chain_length=DEFAULT_ANCESTOR_LIMIT, fee_rate=Decimal("0.004")) ancestor_vsize = 0 ancestor_fees = Decimal(0)