From cb3cb4c8ab06576403e4305be43a851e725d397a Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Thu, 12 May 2022 10:24:42 +0200 Subject: [PATCH] cmd/lncli: add pk script and value to JSON --- cmd/lncli/walletrpc_active.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/lncli/walletrpc_active.go b/cmd/lncli/walletrpc_active.go index 169f53969..0accd96fd 100644 --- a/cmd/lncli/walletrpc_active.go +++ b/cmd/lncli/walletrpc_active.go @@ -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, } }