walletrpc: use locked utxo struct from wtxmgr

This commit is contained in:
Joost Jager committed 2021-03-13 08:45:52 +01:00
1 parent 927f17be32
commit 37331a5ab2
2 files changed
+15 -23

No files matched your search

+6 -6
View File
@@ -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()),
}
}