Skip to content

Commit 6d94192

Browse files
committed
test: add logging for p2p_feefilter.py
1 parent cb1ee15 commit 6d94192

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

test/functional/p2p_feefilter.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,24 +88,22 @@ def test_feefilter(self):
8888

8989
conn = self.nodes[0].add_p2p_connection(TestP2PConn())
9090

91-
# Test that invs are received by test connection for all txs at
92-
# feerate of .2 sat/byte
91+
self.log.info("Test txs paying 0.2 sat/byte are received by test connection")
9392
node1.settxfee(Decimal("0.00000200"))
9493
txids = [node1.sendtoaddress(node1.getnewaddress(), 1) for _ in range(3)]
9594
assert allInvsMatch(txids, conn)
9695
conn.clear_invs()
9796

98-
# Set a filter of .15 sat/byte on test connection
97+
# Set a fee filter of 0.15 sat/byte on test connection
9998
conn.send_and_ping(msg_feefilter(150))
10099

101-
# Test that txs are still being received by test connection (paying .15 sat/byte)
100+
self.log.info("Test txs paying 0.15 sat/byte are received by test connection")
102101
node1.settxfee(Decimal("0.00000150"))
103102
txids = [node1.sendtoaddress(node1.getnewaddress(), 1) for _ in range(3)]
104103
assert allInvsMatch(txids, conn)
105104
conn.clear_invs()
106105

107-
# Change tx fee rate to .1 sat/byte and test they are no longer received
108-
# by the test connection
106+
self.log.info("Test txs paying 0.1 sat/byte are no longer received by test connection")
109107
node1.settxfee(Decimal("0.00000100"))
110108
[node1.sendtoaddress(node1.getnewaddress(), 1) for _ in range(3)]
111109
self.sync_mempools() # must be sure node 0 has received all txs
@@ -122,7 +120,7 @@ def test_feefilter(self):
122120
assert allInvsMatch(txids, conn)
123121
conn.clear_invs()
124122

125-
# Remove fee filter and check that txs are received again
123+
self.log.info("Remove fee filter and check txs are received again")
126124
conn.send_and_ping(msg_feefilter(0))
127125
txids = [node1.sendtoaddress(node1.getnewaddress(), 1) for _ in range(3)]
128126
assert allInvsMatch(txids, conn)

0 commit comments

Comments
 (0)