mirror of
https://github.com/sparrowwallet/drongo.git
synced 2024-11-02 18:26:43 +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);
|
||||
ByteBuffer byteBuffer = ByteBuffer.wrap(buf);
|
||||
byteBuffer.order(ByteOrder.LITTLE_ENDIAN);
|
||||
return byteBuffer.getShort();
|
||||
return Short.toUnsignedInt(byteBuffer.getShort());
|
||||
}
|
||||
case (byte) 0xfe: {
|
||||
byte[] buf = new byte[4];
|
||||
|
|
Loading…
Reference in a new issue