Skip to content

Commit

Permalink
Fix: wallet_basic.py & p2p_tx_privacy.py tests
Browse files Browse the repository at this point in the history
  • Loading branch information
meherett committed Jun 12, 2024
1 parent 629a524 commit 3c93502
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions test/functional/p2p_tx_privacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/functional/wallet_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 3c93502

Please sign in to comment.