Konstantin Nick
78fafbaeb4
Merge pull request #839 from sputn1ck/fsm_ctx
...
FSM: add ctx to SendEvent and Actions
2024-10-22 16:49:45 +02:00
sputn1ck
f2fb722901
reservation: add initchan
...
This fixes a flake in the unit tests
2024-10-22 11:46:31 +02:00
sputn1ck
44306275f7
reservation: update package to use new fsm context
...
This commit updates the reservation package to use the new fsm context
instead of the old fsm context. This is only a first step in the process
of migrating the reservation package to the new fsm context. The next
step should be to remove the stored context in the reservation manager.
2024-10-22 11:46:30 +02:00
Oliver Gugger
93525d3edf
multi: bump lnd compile time dependency to v0.18.4-beta
2024-10-22 09:12:31 +02:00
sputn1ck
d6c7237b77
reservations: check if channel is closing
...
This commit adds a check to the runtime loop
of the reservation manager to check if the
channel is closing before trying to read
from it.
2024-10-15 20:26:05 +02:00
sputn1ck
6408ec8e7e
reservation: remove notifications from reservation
...
This commit removes the notification stream from
the reservation manager and replaces it with a
subscriber interface.
2024-10-08 14:58:37 +02:00
Boris Nagaev
8447f58ff9
multi: do not rename swapserverrpc to looprpc
...
Many imports renamed it, but it was not needed.
2024-09-10 09:54:17 -03:00
Boris Nagaev
1947b90842
multi: typed callback in ExecTx
...
Provide a wrapped store type, exposing ExecTx method with a subset
interface in the callback argument. BaseDB interfaces in instantout,
reservation and sweepbatcher use ExecTx with their subset Querier
instead of whole sqlc.Querier (*sqlc.Queries).
This is needed to make the packages more reusable, so they don't
depend on methods of *sqlc.Queries they don't use.
2024-06-19 10:38:55 -03:00
Boris Nagaev
2847e83fcf
multi: separate Querier from BaseDB interfaces
...
A Querier holds the methods of sqlc.Querier interface relevant for a package.
BaseDB has Querier + ExecTx method.
This change is needed to simplify further rework of ExecTx.
2024-06-19 10:38:55 -03:00
Boris Nagaev
8d8cd9129f
reservation: add missing BaseDB interface method
...
Method InsertReservationUpdate was missing in the interface.
2024-06-19 10:38:55 -03:00
Boris Nagaev
91507d8633
reservation: fix description of UpdateReservation
...
The description was from another method (InsertReservationUpdate).
2024-06-19 10:38:55 -03:00
Boris Nagaev
3fd3fab8d1
loopdb: provide function NewSqlWriteOpts
...
It returns transaction options resulting in full (read+write) tx.
Use it in loopdb and instantout stores.
2024-06-17 12:26:37 -03:00
Boris Nagaev
0e7927ac96
multi: replace LSAT with L402
...
git mv ./cmd/loop/lsat.go ./cmd/loop/l402.go
sed 's@lsat@l402@g' -i `git grep -l lsat`
sed 's@Lsat@L402@g' -i `git grep -l Lsat`
sed 's@LSAT@L402@g' -i `git grep -l LSAT`
make rpc
Updated release_notes.md.
2024-04-24 13:28:28 -03:00
Boris Nagaev
e30cb5f2a8
multi: apply make fmt
2024-04-23 15:18:15 -03:00
sputn1ck
7578349220
reservation: fix exiting on fetchL402
...
This commit changes the way the reservation
manager works, by not exiting when the fetchL402
call fails. This ensures that a client can still
run loop, even if they don't have outbound
capacity or the loop server is offline.
2024-02-09 15:23:53 +01:00
sputn1ck
f725f07dd9
fsm: add instanout fsm parsing
2024-02-06 15:08:00 +01:00
sputn1ck
b7c1e68f46
instantout: add instantout manager
2024-02-06 15:07:58 +01:00
sputn1ck
56ed6f7ccb
instantout: add fsm and actions
2024-02-06 15:07:57 +01:00
sputn1ck
89b5c00cfa
reservation: update reservation state machine
...
This commit updates the reservation statemachine to
allow for locking and spending of the
initial reservation.
2024-02-06 15:07:56 +01:00
sputn1ck
112e612c7a
reservation: add musig2 spend helpers
2024-01-31 16:01:04 +01:00
sputn1ck
9b178dd979
fsm: add reservation fsm compiling
2024-01-17 15:59:09 +01:00
sputn1ck
49c40d9173
loopd: add reservation handling
2024-01-17 15:59:08 +01:00
sputn1ck
d527b0b67c
reservation: add test for manager
2024-01-17 15:59:06 +01:00
sputn1ck
61a5f9da05
reservation: add reservation manager
...
This commit adds the reservation manager to the reservation package.
This manager manages the lifecycle
of reservations.
2024-01-17 15:59:06 +01:00
sputn1ck
60df5fe320
reservations: add reservation sql store
2024-01-17 15:59:06 +01:00
sputn1ck
1a75a5393a
reservation add actions tests
2024-01-17 15:59:05 +01:00
sputn1ck
228bf6a941
reservation: add reservation fsm and actions
...
This commit adds the reservation state machine and actions to the
reservation package.
2024-01-17 15:01:26 +01:00
sputn1ck
3142e98726
reservation: add reservation script
...
This commit adds the reservation script file.
This file contains the neccessary function to create the
reservation script and addresses from the
pubkeys and expiry.
2023-11-30 22:45:01 +01:00