Commit graph

17 commits

Author SHA1 Message Date
Slyghtning
a918842374
staticutil: refactor methods into utils 2025-12-09 12:21:51 +01:00
Boris Nagaev
6d480cfd9e
staticaddr: require positive heights at startup
Loop now guards all static-address managers against zero block heights: each
constructor returns an error when invoked with a non-positive current height,
and `loopd` validates the height from `GetInfo` before instantiating them.
Tests and helper code were updated accordingly so we fail fast instead of
registering chain notifications with invalid hints.
2025-11-16 01:24:01 -03:00
Slyghtning
e98f733ef8
linter: fix lint issues after linter v2 update 2025-08-19 21:57:00 +02:00
Slyghtning
13247c4651
staticaddr: wait for address manager initiation 2025-06-13 15:37:38 +02:00
Slyghtning
cf0651af38
staticaddr: add expiry to NewAddress response 2025-05-15 14:56:49 +02:00
Boris Nagaev
dc4a5641ac
multi: initialize block height in New, not in Run
If Run sets the current height field, it is technically a race between Run and
other methods reading the field. Setting in New is a safer option.

Removed a check that height is not 0 from static address manager.
2025-03-19 15:00:31 +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
f8535a0aea
unit: manager mocks for static address loop-in 2024-12-12 18:31:07 +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
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