mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 04:52:59 +01:00
tests: Remove unused mininode functions deser_int_vector(f) and ser_int_vector(l)
This commit is contained in:
parent
0f3b752ec7
commit
f522fb7c9c
@ -167,21 +167,6 @@ def ser_string_vector(l):
|
|||||||
return r
|
return r
|
||||||
|
|
||||||
|
|
||||||
def deser_int_vector(f):
|
|
||||||
nit = deser_compact_size(f)
|
|
||||||
r = []
|
|
||||||
for i in range(nit):
|
|
||||||
t = struct.unpack("<i", f.read(4))[0]
|
|
||||||
r.append(t)
|
|
||||||
return r
|
|
||||||
|
|
||||||
|
|
||||||
def ser_int_vector(l):
|
|
||||||
r = ser_compact_size(len(l))
|
|
||||||
for i in l:
|
|
||||||
r += struct.pack("<i", i)
|
|
||||||
return r
|
|
||||||
|
|
||||||
# Deserialize from a hex string representation (eg from RPC)
|
# Deserialize from a hex string representation (eg from RPC)
|
||||||
def FromHex(obj, hex_string):
|
def FromHex(obj, hex_string):
|
||||||
obj.deserialize(BytesIO(hex_str_to_bytes(hex_string)))
|
obj.deserialize(BytesIO(hex_str_to_bytes(hex_string)))
|
||||||
|
Loading…
Reference in New Issue
Block a user