mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-05 17:05:50 +02:00
contractcourt: pause resolution for HTLCs w/ custom records
This is a hold over until the aux resolution is finalized for HTLC outputs.
This commit is contained in:
@@ -426,6 +426,17 @@ func (h *htlcTimeoutResolver) Resolve(
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
// If the HTLC has custom records, then for now we'll pause resolution.
|
||||
//
|
||||
// TODO(roasbeef): Implement resolving HTLCs with custom records
|
||||
// (follow-up PR).
|
||||
if len(h.htlc.CustomRecords) != 0 {
|
||||
select { //nolint:gosimple
|
||||
case <-h.quit:
|
||||
return nil, errResolverShuttingDown
|
||||
}
|
||||
}
|
||||
|
||||
// Start by spending the HTLC output, either by broadcasting the
|
||||
// second-level timeout transaction, or directly if this is the remote
|
||||
// commitment.
|
||||
|
Reference in New Issue
Block a user