mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2024-11-20 18:22:12 +01:00
Make decodeCompactBits public, resolves issue 99.
This commit is contained in:
parent
3a463e4799
commit
4b268872df
@ -270,7 +270,7 @@ public class Utils {
|
||||
|
||||
// The representation of nBits uses another home-brew encoding, as a way to represent a large
|
||||
// hash value in only 32 bits.
|
||||
static BigInteger decodeCompactBits(long compact) {
|
||||
public static BigInteger decodeCompactBits(long compact) {
|
||||
int size = ((int) (compact >> 24)) & 0xFF;
|
||||
byte[] bytes = new byte[4 + size];
|
||||
bytes[3] = (byte) size;
|
||||
|
Loading…
Reference in New Issue
Block a user