Skip to content

Commit a760aa1

Browse files
committed
[tests] remove mpi2vch() function
All it does is reverse the bytes order.
1 parent 9a60bef commit a760aa1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

test/functional/test_framework/bignum.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@ def bn2mpi(v):
4444
v_bin[0] |= 0x80
4545
return ext + v_bin
4646

47-
def mpi2vch(s):
48-
"""Convert MPI format to bitcoin-specific little endian format."""
49-
return s[::-1] # reverse string, converting BE->LE
50-
5147
def bn2vch(v):
5248
"""Convert number to bitcoin-specific little endian format."""
53-
return bytes(mpi2vch(bn2mpi(v)))
49+
return bytes(reversed(bn2mpi(v)))

0 commit comments

Comments
 (0)