mirror of
https://github.com/sparrowwallet/drongo.git
synced 2025-01-27 15:41:11 +00:00
fix psbtv2 output amount serialization
This commit is contained in:
parent
3b9998180f
commit
a90d553f1e
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,7 @@ public class PSBTOutput {
|
||||||
|
|
||||||
if(psbtVersion >= 2) {
|
if(psbtVersion >= 2) {
|
||||||
if(amount != null) {
|
if(amount != null) {
|
||||||
byte[] amountBytes = new byte[64];
|
byte[] amountBytes = new byte[8];
|
||||||
Utils.int64ToByteArrayLE(amount, amountBytes, 0);
|
Utils.int64ToByteArrayLE(amount, amountBytes, 0);
|
||||||
entries.add(populateEntry(PSBT_OUT_AMOUNT, null, amountBytes));
|
entries.add(populateEntry(PSBT_OUT_AMOUNT, null, amountBytes));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue