cmd/lncli: add pk script and value to JSON

This commit is contained in:
Oliver Gugger 2022-05-12 10:24:42 +02:00
parent 70103a1838
commit cb3cb4c8ab
No known key found for this signature in database
GPG key ID: 8E4256593F177720

View file

@ -549,6 +549,8 @@ type utxoLease struct {
ID string `json:"id"`
OutPoint OutPoint `json:"outpoint"`
Expiration uint64 `json:"expiration"`
PkScript []byte `json:"pk_script"`
Value uint64 `json:"value"`
}
// fundPsbtResponse is a struct that contains JSON annotations for nice result
@ -758,6 +760,8 @@ func marshallLocks(lockedUtxos []*walletrpc.UtxoLease) []*utxoLease {
ID: hex.EncodeToString(lock.Id),
OutPoint: NewOutPointFromProto(lock.Outpoint),
Expiration: lock.Expiration,
PkScript: lock.PkScript,
Value: lock.Value,
}
}