@@ -88,24 +88,22 @@ def test_feefilter(self):
88
88
89
89
conn = self .nodes [0 ].add_p2p_connection (TestP2PConn ())
90
90
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" )
93
92
node1 .settxfee (Decimal ("0.00000200" ))
94
93
txids = [node1 .sendtoaddress (node1 .getnewaddress (), 1 ) for _ in range (3 )]
95
94
assert allInvsMatch (txids , conn )
96
95
conn .clear_invs ()
97
96
98
- # Set a filter of .15 sat/byte on test connection
97
+ # Set a fee filter of 0 .15 sat/byte on test connection
99
98
conn .send_and_ping (msg_feefilter (150 ))
100
99
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" )
102
101
node1 .settxfee (Decimal ("0.00000150" ))
103
102
txids = [node1 .sendtoaddress (node1 .getnewaddress (), 1 ) for _ in range (3 )]
104
103
assert allInvsMatch (txids , conn )
105
104
conn .clear_invs ()
106
105
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" )
109
107
node1 .settxfee (Decimal ("0.00000100" ))
110
108
[node1 .sendtoaddress (node1 .getnewaddress (), 1 ) for _ in range (3 )]
111
109
self .sync_mempools () # must be sure node 0 has received all txs
@@ -122,7 +120,7 @@ def test_feefilter(self):
122
120
assert allInvsMatch (txids , conn )
123
121
conn .clear_invs ()
124
122
125
- # Remove fee filter and check that txs are received again
123
+ self . log . info ( " Remove fee filter and check txs are received again" )
126
124
conn .send_and_ping (msg_feefilter (0 ))
127
125
txids = [node1 .sendtoaddress (node1 .getnewaddress (), 1 ) for _ in range (3 )]
128
126
assert allInvsMatch (txids , conn )
0 commit comments