mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-08 14:57:38 +02:00
contractcourt: pass in new aux resolution blob to sweeper in resolvers
With this commit, we update all the resolvers to pass in the new htlc resolution blobs. Along the way, we remove the old blocking guard on this resolution logic for HTLCs with blobs.
This commit is contained in:
@@ -99,17 +99,6 @@ func (h *htlcIncomingContestResolver) 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
|
||||
}
|
||||
}
|
||||
|
||||
// First try to parse the payload. If that fails, we can stop resolution
|
||||
// now.
|
||||
payload, nextHopOnionBlob, err := h.decodePayload()
|
||||
|
Reference in New Issue
Block a user