From 0f3b752ec78e53099af0277d15fc2bf8e0c92d05 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Tue, 14 Nov 2017 10:21:30 +0100 Subject: Remove unused imports --- test/functional/minchainwork.py | 2 +- test/functional/p2p-fingerprint.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'test') diff --git a/test/functional/minchainwork.py b/test/functional/minchainwork.py index 35cd7ad141..90a3de0e0d 100755 --- a/test/functional/minchainwork.py +++ b/test/functional/minchainwork.py @@ -18,7 +18,7 @@ only succeeds past a given node once its nMinimumChainWork has been exceeded. import time from test_framework.test_framework import BitcoinTestFramework -from test_framework.util import sync_blocks, connect_nodes, assert_equal +from test_framework.util import connect_nodes, assert_equal # 2 hashes required per regtest block (with no difficulty adjustment) REGTEST_WORK_PER_BLOCK = 2 diff --git a/test/functional/p2p-fingerprint.py b/test/functional/p2p-fingerprint.py index 4b6446fc5b..a8ce68374c 100755 --- a/test/functional/p2p-fingerprint.py +++ b/test/functional/p2p-fingerprint.py @@ -24,7 +24,6 @@ from test_framework.mininode import ( from test_framework.test_framework import BitcoinTestFramework from test_framework.util import ( assert_equal, - p2p_port, ) class P2PFingerprintTest(BitcoinTestFramework): -- cgit v1.2.3 From f522fb7c9c121641ce552774e3993942106ec336 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Fri, 17 Nov 2017 15:35:15 +0100 Subject: tests: Remove unused mininode functions deser_int_vector(f) and ser_int_vector(l) --- test/functional/test_framework/messages.py | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'test') diff --git a/test/functional/test_framework/messages.py b/test/functional/test_framework/messages.py index 40d02f3ee0..eee24910cb 100644 --- a/test/functional/test_framework/messages.py +++ b/test/functional/test_framework/messages.py @@ -167,21 +167,6 @@ def ser_string_vector(l): return r -def deser_int_vector(f): - nit = deser_compact_size(f) - r = [] - for i in range(nit): - t = struct.unpack("