From 05139e3eb414cf553f615ee59f5b2368500cd884 Mon Sep 17 00:00:00 2001 From: Pasta Date: Mon, 10 Jun 2019 00:47:09 -0500 Subject: [PATCH] remove MyNodeConnCB Class and references Signed-off-by: Pasta --- test/functional/p2p-fingerprint.py | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/test/functional/p2p-fingerprint.py b/test/functional/p2p-fingerprint.py index 6c43cb95d6..617c6c150c 100755 --- a/test/functional/p2p-fingerprint.py +++ b/test/functional/p2p-fingerprint.py @@ -89,26 +89,7 @@ class P2PFingerprintTest(BitcoinTestFramework): # This does not currently test that stale blocks timestamped within the # last month but that have over a month's worth of work are also withheld. def run_test(self): - # TODO remove this when mininode is up-to-date with Bitcoin - class MyNodeConnCB(NodeConnCB): - def __init__(self): - super().__init__() - self.cond = threading.Condition() - self.last_message = {} - - def deliver(self, conn, message): - super().deliver(conn, message) - command = message.command.decode('ascii') - self.last_message[command] = message - with self.cond: - self.cond.notify_all() - - def wait_for_getdata(self): - with self.cond: - assert(self.cond.wait_for(lambda: "getdata" in self.last_message, timeout=15)) - - - node0 = MyNodeConnCB() + node0 = NodeConnCB() connections = [] connections.append(NodeConn('127.0.0.1', p2p_port(0), self.nodes[0], node0))