fix psbtv2 output amount serialization

This commit is contained in:
Craig Raw 2024-11-18 13:05:13 +02:00
parent 3b9998180f
commit a90d553f1e

View file

@ -142,7 +142,7 @@ public class PSBTOutput {
if(psbtVersion >= 2) {
if(amount != null) {
byte[] amountBytes = new byte[64];
byte[] amountBytes = new byte[8];
Utils.int64ToByteArrayLE(amount, amountBytes, 0);
entries.add(populateEntry(PSBT_OUT_AMOUNT, null, amountBytes));
}