Commit Graph

32 Commits (5dac7ca75bab202296d86bcf6df6de6898faf0f0)

Author SHA1 Message Date
Slyghtning 9af205de09
instantout: assign chaincfg in sql store 2 months ago
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.
3 months ago
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.
3 months ago
Boris Nagaev 8d8cd9129f
reservation: add missing BaseDB interface method
Method InsertReservationUpdate was missing in the interface.
3 months ago
Boris Nagaev 91507d8633
reservation: fix description of UpdateReservation
The description was from another method (InsertReservationUpdate).
3 months ago
Boris Nagaev 3fd3fab8d1
loopdb: provide function NewSqlWriteOpts
It returns transaction options resulting in full (read+write) tx.

Use it in loopdb and instantout stores.
3 months ago
Slyghtning 402d9a84df
gomod: bump lnd to version 0.18.0-beta 4 months ago
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.
5 months ago
Boris Nagaev e30cb5f2a8
multi: apply make fmt 5 months ago
sputn1ck b3805b7cad
instantout: add listinstantout func 7 months ago
sputn1ck f3919d976c
instantout: export value and expiry 7 months ago
sputn1ck 6a62be0d09
instantout: add addr to send funds to 7 months ago
sputn1ck 1be6d39677
instantout: log correct expiry 7 months ago
Konstantin Nick 6a62cd02d7
Merge pull request #698 from sputn1ck/io_reservation_expiry 7 months ago
sputn1ck a7ab998a3b
instantout: check reservation expiry 7 months ago
Andras Banki-Horvath 7fb75c2f83
instantout: fix swapserverrpc dependent compilation 7 months ago
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.
7 months ago
sputn1ck b3fe9a9c61
loopd: add instantout quote 7 months ago
sputn1ck f725f07dd9
fsm: add instanout fsm parsing 8 months ago
sputn1ck b7c1e68f46
instantout: add instantout manager 8 months ago
sputn1ck ee0309f942
instantout: add instantout store 8 months ago
sputn1ck 56ed6f7ccb
instantout: add fsm and actions 8 months ago
sputn1ck 89b5c00cfa
reservation: update reservation state machine
This commit updates the reservation statemachine to
allow for locking and spending of the
initial reservation.
8 months ago
sputn1ck 112e612c7a
reservation: add musig2 spend helpers 8 months ago
sputn1ck 9b178dd979
fsm: add reservation fsm compiling 8 months ago
sputn1ck 49c40d9173
loopd: add reservation handling 8 months ago
sputn1ck d527b0b67c
reservation: add test for manager 8 months ago
sputn1ck 61a5f9da05
reservation: add reservation manager
This commit adds the reservation manager to the reservation package.
This manager manages the lifecycle
of reservations.
8 months ago
sputn1ck 60df5fe320
reservations: add reservation sql store 8 months ago
sputn1ck 1a75a5393a
reservation add actions tests 8 months ago
sputn1ck 228bf6a941
reservation: add reservation fsm and actions
This commit adds the reservation state machine and actions to the
reservation package.
8 months ago
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.
10 months ago