mirror of
https://github.com/sparrowwallet/drongo.git
synced 2024-12-25 17:46:44 +00:00
fix reading of compact size int as unsigned short when parsing psbts
This commit is contained in:
parent
5b9b3043a6
commit
d3e003f76e
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ public class PSBTEntry {
|
||||||
psbtByteBuffer.get(buf);
|
psbtByteBuffer.get(buf);
|
||||||
ByteBuffer byteBuffer = ByteBuffer.wrap(buf);
|
ByteBuffer byteBuffer = ByteBuffer.wrap(buf);
|
||||||
byteBuffer.order(ByteOrder.LITTLE_ENDIAN);
|
byteBuffer.order(ByteOrder.LITTLE_ENDIAN);
|
||||||
return byteBuffer.getShort();
|
return Short.toUnsignedInt(byteBuffer.getShort());
|
||||||
}
|
}
|
||||||
case (byte) 0xfe: {
|
case (byte) 0xfe: {
|
||||||
byte[] buf = new byte[4];
|
byte[] buf = new byte[4];
|
||||||
|
|
Loading…
Reference in a new issue