contractcourt: make sure sweep happens immediately on startup

This commit makes sure the time-sensitive outputs are swept immediately
during startup.
This commit is contained in:
yyforyongyu committed 2024-04-19 21:33:39 +08:00
1 parent 7abefa7760
commit 49cfb91af1
14 files changed
+54 -29

No files matched your search

@@ -49,7 +49,9 @@ func newOutgoingContestResolver(res lnwallet.OutgoingHtlcResolution,
// When either of these two things happens, we'll create a new resolver which
// is able to handle the final resolution of the contract. We're only the pivot
// point.
func (h *htlcOutgoingContestResolver) Resolve() (ContractResolver, error) {
func (h *htlcOutgoingContestResolver) Resolve(
_ bool) (ContractResolver, error) {
// If we're already full resolved, then we don't have anything further
// to do.
if h.resolved {