walletrpc: use locked utxo struct from wtxmgr
This commit is contained in:
1 parent
927f17be32
commit
37331a5ab2
2 files changed
+15
-23
No files matched your search
@@ -917,7 +917,7 @@ func (w *WalletKit) FundPsbt(_ context.Context,
|
||||
err error
|
||||
packet *psbt.Packet
|
||||
feeSatPerKW chainfee.SatPerKWeight
|
||||
locks []*utxoLock
|
||||
locks []*wtxmgr.LockedOutput
|
||||
rawPsbt bytes.Buffer
|
||||
)
|
||||
|
||||
@@ -1081,13 +1081,13 @@ func (w *WalletKit) FundPsbt(_ context.Context,
|
||||
rpcLocks := make([]*UtxoLease, len(locks))
|
||||
for idx, lock := range locks {
|
||||
rpcLocks[idx] = &UtxoLease{
|
||||
Id: lock.lockID[:],
|
||||
Id: lock.LockID[:],
|
||||
Outpoint: &lnrpc.OutPoint{
|
||||
TxidBytes: lock.outpoint.Hash[:],
|
||||
TxidStr: lock.outpoint.Hash.String(),
|
||||
OutputIndex: lock.outpoint.Index,
|
||||
TxidBytes: lock.Outpoint.Hash[:],
|
||||
TxidStr: lock.Outpoint.Hash.String(),
|
||||
OutputIndex: lock.Outpoint.Index,
|
||||
},
|
||||
Expiration: uint64(lock.expiration.Unix()),
|
||||
Expiration: uint64(lock.Expiration.Unix()),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user