diff options
author | John Newbery <john@johnnewbery.com> | 2019-10-30 10:27:25 -0400 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2019-10-30 10:53:16 -0400 |
commit | a760aa14a974cc18fa70a91f87a96a3db395a624 (patch) | |
tree | 9cda5725b14bcc14d8fed8698f241d9b439d0356 /test/functional/test_framework | |
parent | 9a60bef50def228da763fe842bc2a7b9bf4fbcd7 (diff) | |
download | bitcoin-a760aa14a974cc18fa70a91f87a96a3db395a624.tar.xz |
[tests] remove mpi2vch() function
All it does is reverse the bytes order.
Diffstat (limited to 'test/functional/test_framework')
-rw-r--r-- | test/functional/test_framework/bignum.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/test/functional/test_framework/bignum.py b/test/functional/test_framework/bignum.py index f50c648c42..ed440a2cd8 100644 --- a/test/functional/test_framework/bignum.py +++ b/test/functional/test_framework/bignum.py @@ -44,10 +44,6 @@ def bn2mpi(v): v_bin[0] |= 0x80 return ext + v_bin -def mpi2vch(s): - """Convert MPI format to bitcoin-specific little endian format.""" - return s[::-1] # reverse string, converting BE->LE - def bn2vch(v): """Convert number to bitcoin-specific little endian format.""" - return bytes(mpi2vch(bn2mpi(v))) + return bytes(reversed(bn2mpi(v))) |