Changeset View
Changeset View
Standalone View
Standalone View
test/functional/p2p-feefilter.py
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | def run_test(self): | ||||
node0 = self.nodes[0] | node0 = self.nodes[0] | ||||
# Get out of IBD | # Get out of IBD | ||||
node1.generate(1) | node1.generate(1) | ||||
sync_blocks(self.nodes) | sync_blocks(self.nodes) | ||||
# Setup the p2p connections and start up the network thread. | # Setup the p2p connections and start up the network thread. | ||||
test_node = TestNode() | test_node = TestNode() | ||||
connection = NodeConn( | connection = NodeConn( | ||||
'127.0.0.1', p2p_port(0), self.nodes[0], test_node) | '127.0.0.1', self.p2p_port(0), self.nodes[0], test_node) | ||||
test_node.add_connection(connection) | test_node.add_connection(connection) | ||||
NetworkThread().start() | NetworkThread().start() | ||||
test_node.wait_for_verack() | test_node.wait_for_verack() | ||||
# Test that invs are received for all txs at feerate of 20 sat/byte | # Test that invs are received for all txs at feerate of 20 sat/byte | ||||
node1.settxfee(Decimal("0.00020000")) | node1.settxfee(Decimal("0.00020000")) | ||||
txids = [node1.sendtoaddress(node1.getnewaddress(), 1) | txids = [node1.sendtoaddress(node1.getnewaddress(), 1) | ||||
for x in range(3)] | for x in range(3)] | ||||
Show All 40 Lines |