contractcourt+lnd: make IncubateOutputs take fn.Option
`IncubateOutputs` never takes more than one HTLC, so we change the params to be optional, which helps with the following commit where we pass the deadline height when incubating outgoing HTLCs.
This commit is contained in:
9 files changed
+44
-40
No files matched your search
@@ -545,7 +545,8 @@ func (h *htlcTimeoutResolver) sendSecondLevelTxLegacy() error {
|
||||
h.htlcResolution.ClaimOutpoint)
|
||||
|
||||
err := h.IncubateOutputs(
|
||||
h.ChanPoint, &h.htlcResolution, nil,
|
||||
h.ChanPoint, fn.Some(h.htlcResolution),
|
||||
fn.None[lnwallet.IncomingHtlcResolution](),
|
||||
h.broadcastHeight,
|
||||
)
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user