mirror of https://github.com/m2049r/xmrwallet.git
fix length test (#314)
This commit is contained in:
parent
3c8a4ce967
commit
8985511209
|
@ -66,7 +66,7 @@ public class BitcoinAddressValidator {
|
|||
|
||||
byte[] result = new byte[25];
|
||||
byte[] numBytes = num.toByteArray();
|
||||
if (numBytes.length > result.length) return null;
|
||||
if (num.bitLength() > 200) return null;
|
||||
|
||||
if (num.bitLength() == 200) {
|
||||
System.arraycopy(numBytes, 1, result, 0, 25);
|
||||
|
|
Loading…
Reference in New Issue