From 0f3b752ec78e53099af0277d15fc2bf8e0c92d05 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Tue, 14 Nov 2017 10:21:30 +0100 Subject: [PATCH 1/2] Remove unused imports --- test/functional/minchainwork.py | 2 +- test/functional/p2p-fingerprint.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/test/functional/minchainwork.py b/test/functional/minchainwork.py index 35cd7ad14..90a3de0e0 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 4b6446fc5..a8ce68374 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): From f522fb7c9c121641ce552774e3993942106ec336 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Fri, 17 Nov 2017 15:35:15 +0100 Subject: [PATCH 2/2] 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(-) diff --git a/test/functional/test_framework/messages.py b/test/functional/test_framework/messages.py index 40d02f3ee..eee24910c 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("