mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 09:48:19 +01:00
cmd/lncli: add pk script and value to JSON
This commit is contained in:
parent
70103a1838
commit
cb3cb4c8ab
1 changed files with 4 additions and 0 deletions
|
@ -549,6 +549,8 @@ type utxoLease struct {
|
||||||
ID string `json:"id"`
|
ID string `json:"id"`
|
||||||
OutPoint OutPoint `json:"outpoint"`
|
OutPoint OutPoint `json:"outpoint"`
|
||||||
Expiration uint64 `json:"expiration"`
|
Expiration uint64 `json:"expiration"`
|
||||||
|
PkScript []byte `json:"pk_script"`
|
||||||
|
Value uint64 `json:"value"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// fundPsbtResponse is a struct that contains JSON annotations for nice result
|
// 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),
|
ID: hex.EncodeToString(lock.Id),
|
||||||
OutPoint: NewOutPointFromProto(lock.Outpoint),
|
OutPoint: NewOutPointFromProto(lock.Outpoint),
|
||||||
Expiration: lock.Expiration,
|
Expiration: lock.Expiration,
|
||||||
|
PkScript: lock.PkScript,
|
||||||
|
Value: lock.Value,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue