Slyghtning
dbac12ed78
deposit: add OnExpiry self-transitions to OpeningChannel and ChannelPublished
...
Both OpeningChannel and ChannelPublished lacked OnExpiry transitions.
handleBlockNotification fires OnExpiry on every new block once the
deposit is expired, regardless of the current state. Since both states
use NoOpAction or FinalizeDepositAction which release the FSM mutex
briefly, an OnExpiry SendEvent can sneak in. Add self-transitions so
the event is safely absorbed.
2026-02-26 20:57:27 +01:00
Slyghtning
d12663ea7c
staticaddr: channel open states for deposit and fsm
2026-02-26 20:57:26 +01:00
Slyghtning
81012de948
staticaddr: replace block-based deposit detection with polling
...
Block-based deposit fetching from the internal lnd wallet was
susceptible to wallet syncing issues. Replace it with interval-based
polling. Reconciliation errors are now logged instead of being fatal,
improving resilience during transient failures.
2026-02-26 20:57:26 +01:00
Slyghtning
f1c138abf5
deposit: remove dead code in reconcileDeposits
...
Remove unreachable error check after filterNewDeposits which does not
return an error. The err variable was already handled from the
ListUnspent call above and could never be non-nil at this point.
2026-02-26 20:57:26 +01:00
Boris Nagaev
0b53296aa8
multi: factor out sweep fee clamping function
2026-01-15 03:06:22 -05:00
Slyghtning
a918842374
staticutil: refactor methods into utils
2025-12-09 12:21:51 +01:00
Slyghtning
55081cd8fe
staticaddr: ignoreUnknown flag for DepositsForOutpoints
2025-09-26 12:03:48 +02:00
Slyghtning
b36f1651a3
staticaddr: poll new deposits on block arrival
2025-09-08 16:52:36 +02:00
Slyghtning
a1fb489a47
Merge pull request #996 from hieblmi/fix-971
...
staticaddr: monitor tx id of expiry sweep
2025-08-27 13:31:59 +02:00
Slyghtning
0ee9a617e6
staticaddr: log errors in manager.Run
2025-08-26 09:47:18 +02:00
Slyghtning
6ee4cf96f0
staticaddr: monitor tx id of expiry sweep
2025-08-22 16:14:18 +02:00
Slyghtning
b2a4d7af2d
staticaddr: show deposits as part of cli swap output
2025-08-20 17:07:29 +02:00
Slyghtning
a41334dd3d
staticaddr: add swap hash to deposit structs
2025-08-20 16:58:20 +02:00
Slyghtning
e98f733ef8
linter: fix lint issues after linter v2 update
2025-08-19 21:57:00 +02:00
Slyghtning
d7ac3148c9
staticaddr: relax scope of ToDeposit
2025-08-01 11:26:33 +02:00
Slyghtning
e948c94b95
staticaddr: method to fetch deposits by outpoints
2025-07-29 15:52:54 +02:00
Andras Banki-Horvath
31f996cb37
build: bump tapd to v0.6.1 and lnd to v0.19.2-beta
2025-07-16 19:05:32 +02:00
Slyghtning
412fe7ffd9
staticaddr: simplify withdrawal fsm transition
...
previously upon recovery, a withdrawing deposit was
first transitioned into the Deposited state by the
deposit manager, and then again into the Withdrawing
state by the withdrawal manager. The first transition
is unnecessary, so we just remain in the Withdrawing
state upon recovery.
2025-07-02 15:42:12 +02:00
Boris Nagaev
51b74512b8
staticaddr: fix error formatting in the log
2025-06-24 01:44:32 -03:00
Slyghtning
3963bad3a1
staticaddr: remove duplicate deposit finalize method
2025-06-23 11:00:06 +02:00
Slyghtning
c579a3e933
staticaddr: fix deposit recovery deadlock
2025-06-23 10:35:16 +02:00
Slyghtning
13247c4651
staticaddr: wait for address manager initiation
2025-06-13 15:37:38 +02:00
Boris Nagaev
4e4390416b
staticaddr: fix logs, use %v not %w in logs
2025-05-13 11:49:50 -03:00
Slyghtning
ff44b3b640
staticaddr: log deposit state transition only if executed
2025-04-28 19:43:29 +02:00
Slyghtning
82e34a6d5e
staticaddr: allow rbf'ing withdrawal transactions
2025-04-28 19:43:28 +02:00
Slyghtning
8401ca58be
staticaddr: non-concurrent deposit recovery
2025-03-26 15:33:19 +01:00
Slyghtning
cecb24c673
Merge pull request #902 from hieblmi/fix-deadlock
...
staticaddr: lock mutex for active deposits access
2025-03-21 14:53:38 +01:00
Slyghtning
679ba13608
staticaddr: don't lock active deposits across state transition
2025-03-21 11:17:57 +01:00
Boris Nagaev
e704119f14
deposit: fix sending to finalizedDepositChan
2025-03-21 10:30:41 +01:00
Slyghtning
484681ab45
staticaddr: quit deposit fsm handler when finialized
2025-03-21 10:30:39 +01:00
Boris Nagaev
4c292f179f
staticaddr: fix race conditions in current height
...
Make the current height an atomic variable in staticaddr/address/manager.go and
in staticaddr/withdraw/manager.go.
Removed the initiation height from staticaddr/deposit/manager.go (not needed).
2025-03-19 15:00:30 +01:00
Oliver Gugger
722ad8839d
multi: update lnd compile-time dependency to v0.19.0
2025-03-10 22:59:49 +01:00
Slyghtning
fc6c9f224c
staticaddr: add initiation height of address
2024-12-12 18:31:10 +01:00
sputn1ck
115558bed5
staticaddr/loopin: remove unused code
2024-12-12 18:31:09 +01:00
Slyghtning
e3e56ecc70
staticaddr: change min deposit confs from 3 to 6
2024-12-12 18:31:08 +01:00
Slyghtning
f8535a0aea
unit: manager mocks for static address loop-in
2024-12-12 18:31:07 +01:00
Slyghtning
c11e90138b
staticaddr: enable deposits for swaps
...
The static address state machine adds states
to reflect the state of a deposit during a
loop-in swap.
2024-12-12 18:31:06 +01:00
Slyghtning
ea2b3c84f0
staticaddr: expose static address to client summary
2024-12-12 18:31:05 +01:00
Slyghtning
1f2ec79fed
staticaddr: address and deposit adjustments for withdrawals
2024-12-12 18:31:04 +01:00
Slyghtning
9e56be74c5
log: unified static address logger
2024-12-12 18:31:04 +01:00
Slyghtning
70b21893e0
staticaddr: public deposit method scope
2024-12-12 18:31:04 +01:00
Slyghtning
b7b553cf1e
unit: manager tests
2024-12-12 18:31:04 +01:00
Slyghtning
042fe9f325
staticaddr: deposit manager and fsm
2024-12-12 18:31:03 +01:00
Slyghtning
52a11a0b1b
staticaddr: interfaces
2024-12-12 18:31:03 +01:00