Skip to content

Commit a892218

Browse files
author
MarcoFalke
committed
Merge bitcoin#11683: tests: Remove unused mininode functions {ser,deser}_int_vector(...). Remove unused imports.
f522fb7 tests: Remove unused mininode functions deser_int_vector(f) and ser_int_vector(l) (practicalswift) 0f3b752 Remove unused imports (practicalswift) Pull request description: * Remove unused mininode functions `deser_int_vector(f)` and `ser_int_vector(l)`. Last use removed in 3858aab. Friendly ping @jnewbery :-) * Remove unused imports. Tree-SHA512: 840c5623eae9f929561f6e86816883c5904ec1af82fc8d5e56dee1c0b1fe22e8600c10f7358ed8b556b3aec8c65c4910f6eee30e8015a573c4df8bef91124d3e
2 parents a933cb1 + f522fb7 commit a892218

File tree

3 files changed

+1
-17
lines changed

3 files changed

+1
-17
lines changed

test/functional/minchainwork.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import time
1919

2020
from test_framework.test_framework import BitcoinTestFramework
21-
from test_framework.util import sync_blocks, connect_nodes, assert_equal
21+
from test_framework.util import connect_nodes, assert_equal
2222

2323
# 2 hashes required per regtest block (with no difficulty adjustment)
2424
REGTEST_WORK_PER_BLOCK = 2

test/functional/p2p-fingerprint.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
from test_framework.test_framework import BitcoinTestFramework
2525
from test_framework.util import (
2626
assert_equal,
27-
p2p_port,
2827
)
2928

3029
class P2PFingerprintTest(BitcoinTestFramework):

test/functional/test_framework/messages.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -167,21 +167,6 @@ def ser_string_vector(l):
167167
return r
168168

169169

170-
def deser_int_vector(f):
171-
nit = deser_compact_size(f)
172-
r = []
173-
for i in range(nit):
174-
t = struct.unpack("<i", f.read(4))[0]
175-
r.append(t)
176-
return r
177-
178-
179-
def ser_int_vector(l):
180-
r = ser_compact_size(len(l))
181-
for i in l:
182-
r += struct.pack("<i", i)
183-
return r
184-
185170
# Deserialize from a hex string representation (eg from RPC)
186171
def FromHex(obj, hex_string):
187172
obj.deserialize(BytesIO(hex_str_to_bytes(hex_string)))

0 commit comments

Comments
 (0)