From 4b268872df70ca5803ce6c2d6284338aa44db8ce Mon Sep 17 00:00:00 2001 From: "Miron Cuperman (devrandom)" Date: Sat, 12 Nov 2011 23:32:17 +0000 Subject: [PATCH] Make decodeCompactBits public, resolves issue 99. --- src/com/google/bitcoin/core/Utils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/google/bitcoin/core/Utils.java b/src/com/google/bitcoin/core/Utils.java index 7af49acb..67a696fa 100644 --- a/src/com/google/bitcoin/core/Utils.java +++ b/src/com/google/bitcoin/core/Utils.java @@ -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;