Changeset View
Changeset View
Standalone View
Standalone View
test/functional/p2p-timeouts.py
Show All 29 Lines | |||||
class TestNode(NodeConnCB): | class TestNode(NodeConnCB): | ||||
def on_version(self, conn, message): | def on_version(self, conn, message): | ||||
# Don't send a verack in response | # Don't send a verack in response | ||||
pass | pass | ||||
@extended | @tags('slow') | ||||
class TimeoutsTest(BitcoinTestFramework): | class TimeoutsTest(BitcoinTestFramework): | ||||
def set_test_params(self): | def set_test_params(self): | ||||
self.setup_clean_chain = True | self.setup_clean_chain = True | ||||
self.num_nodes = 1 | self.num_nodes = 1 | ||||
def run_test(self): | def run_test(self): | ||||
# Setup the p2p connections and start up the network thread. | # Setup the p2p connections and start up the network thread. | ||||
self.no_verack_node = TestNode() # never send verack | self.no_verack_node = TestNode() # never send verack | ||||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |