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

@@ -90,7 +90,9 @@ func (h *htlcIncomingContestResolver) processFinalHtlcFail() error {
// as we have no remaining actions left at our disposal.
//
// NOTE: Part of the ContractResolver interface.
func (h *htlcIncomingContestResolver) Resolve() (ContractResolver, error) {
func (h *htlcIncomingContestResolver) Resolve(
_ bool) (ContractResolver, error) {
// If we're already full resolved, then we don't have anything further
// to do.
if h.resolved {