Skip to content

Commit

Permalink
loopd/staticaddr: add ntfn manager
Browse files Browse the repository at this point in the history
  • Loading branch information
sputn1ck committed Nov 18, 2024
1 parent 7222ab9 commit b0a445f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions loopd/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
7 changes: 2 additions & 5 deletions loopd/swapclient_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b0a445f

Please sign in to comment.