From b0a445f5d7f87532210981978c1224021e3309cf Mon Sep 17 00:00:00 2001 From: sputn1ck Date: Thu, 14 Nov 2024 15:35:04 +0100 Subject: [PATCH] loopd/staticaddr: add ntfn manager --- loopd/daemon.go | 1 + loopd/swapclient_server.go | 7 ++----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/loopd/daemon.go b/loopd/daemon.go index 4b0117791..b614f37fc 100644 --- a/loopd/daemon.go +++ b/loopd/daemon.go @@ -633,6 +633,7 @@ func (d *Daemon) initialize(withMacaroonService bool) error { Store: staticAddressLoopInStore, WalletKit: d.lnd.WalletKit, ChainNotifier: d.lnd.ChainNotifier, + NotificationManager: notificationManager, ChainParams: d.lnd.ChainParams, Signer: d.lnd.Signer, ValidateLoopInContract: loop.ValidateLoopInContract, diff --git a/loopd/swapclient_server.go b/loopd/swapclient_server.go index 809ad7a5a..6eb5beefa 100644 --- a/loopd/swapclient_server.go +++ b/loopd/swapclient_server.go @@ -1796,14 +1796,11 @@ func toClientStaticAddressLoopInState( case loopin.HtlcTimeoutSwept: return looprpc.StaticAddressLoopInSwapState_HTLC_STATIC_ADDRESS_TIMEOUT_SWEPT - case loopin.FetchSignPushSweeplessSweepTx: - return looprpc.StaticAddressLoopInSwapState_FETCH_SIGN_PUSH_SWEEPLESS_SWEEP_TX - case loopin.Succeeded: return looprpc.StaticAddressLoopInSwapState_SUCCEEDED - case loopin.SucceededSweeplessSigFailed: - return looprpc.StaticAddressLoopInSwapState_SUCCEEDED_SWEEPLESS_SIG_FAILED + case loopin.SucceededTransitioningFailed: + return looprpc.StaticAddressLoopInSwapState_SUCCEEDED_TRANSITIONING_FAILED case loopin.UnlockDeposits: return looprpc.StaticAddressLoopInSwapState_UNLOCK_DEPOSITS