Commit graph

243 commits

Author SHA1 Message Date
sputn1ck
830220af66
looprpc: add FetchL402 rpc
This commit adds the FetchL402 rpc to the client proto, which will allow
users to force fetching an L402 without doing a loop out or in.
2024-10-30 17:18:34 +01:00
sputn1ck
e9f1a1aef3
ntfn: use l402 store for tokens
This commit changes the way we fetch the l402 tokens for the
notification stream. Instead of fetching them from the server and
paying an invoice, we now look into our local store for the token.
This means that a loop client will not autofetch a token.
2024-10-30 17:12:28 +01:00
sputn1ck
f2fb722901
reservation: add initchan
This fixes a flake in the unit tests
2024-10-22 11:46:31 +02:00
Slyghtning
caa8cc850d
loopout: trace logs for hasBandwidth mpp check 2024-10-15 10:08:31 +02:00
sputn1ck
7409ae73c6
loopd: add notification manager
This commit adds the notification manager to the
loopd daemon.
2024-10-08 14:58:41 +02:00
András Bánki-Horváth
61c0b45897
Merge pull request #829 from bhandras/cost-migration-rpc-batchsize
loopd: allow setting RPC batch size when running cost migration
2024-10-08 14:55:31 +02:00
Andras Banki-Horvath
0e2a36004a
loopd: allow setting RPC batch size when running cost migration
Previously we defaulted to fetching 1000 payments at a time when running
the cost migration however due to slowness on LND side this may prevent
the migration from completing due to RPC timeout kicking in. This commit
adds a new config value to give more control to the user by setting the
batch size as needed.
2024-09-20 10:13:48 +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
András Bánki-Horváth
d47158d58e
Merge pull request #773 from bhandras/cost-migraton-pagination
loop: paginate fetching payments when running the cost migration
2024-06-05 09:00:13 +02:00
Andras Banki-Horvath
3754730525
loop: paginate fetching payments when running the cost migration 2024-06-05 08:54:24 +02:00
Andras Banki-Horvath
28c09bec68
loopd: make the LND RPC timeout configurable 2024-06-04 18:28:03 +02:00
Andras Banki-Horvath
c7fa1e4109
loopd: run the cost migration on start 2024-06-03 14:54:18 +02:00
Andras Banki-Horvath
0d0af5bf24
loopout: use the request defined payment timeout 2024-05-23 17:17:21 +02:00
Slyghtning
636f8b611b
daemon: fix wrapped errors and typos 2024-05-01 07:55:01 +02:00
Boris Nagaev
5a1f79557d
loopd: re-add GetLsatTokens method in gRPC
This is needed not to break existing client binaries, e.g. `loop listauth`,
Terminal Web, RTL.

The API should be removed in a couple of releases. For now, GetLsatTokens
just prints a warning message about the API being deprecated and that the
client binary should be updated, and calls GetL402Tokens API, as a wrapper.

Type LsatToken used by GetLsatTokens in the past was renamed to L402Token,
but this does not affect binary encoding, so type L402Token can be used
(as part of TokensResponse) without breaking backward compatibility.

Updated release_notes.md.

See https://github.com/lightninglabs/loop/pull/730#discussion_r1579251294
2024-04-29 09:39:28 -03:00
Boris Nagaev
7bb04ae6ac
loopd: recorgnize maxlsatcost and maxlsatfee flags
The flags were re-added in hidden mode so that users who specified them
could start the daemon after upgrading. If a flag is used, a deprecation
warning is printed.

Updated release_notes.md.
2024-04-24 14:18:01 -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
bfc3f44aa1
update aperture to include lsat to l402 renaming
Fix the build:
go mod tidy
sed 's@\<lsat\>@l402@g' -i `git grep -l -w aperture/lsat`
make rpc
2024-04-24 13:28:04 -03:00
Boris Nagaev
e30cb5f2a8
multi: apply make fmt 2024-04-23 15:18:15 -03:00
sputn1ck
1f211e5647
swapclientserver: add listinstantouts 2024-03-04 12:26:17 +01:00
sputn1ck
6a62be0d09
instantout: add addr to send funds to 2024-03-04 09:43:52 +01:00
Slyghtning
5214da8822
loopd: cleanup db utils func 2024-03-01 10:02:29 +01:00
Slyghtning
755d5dc68e
loopd: new loopin state for incorrect amount sweeps 2024-02-13 15:03:03 +01:00
András Bánki-Horváth
8ca08455dd
Merge pull request #700 from bhandras/lnd-17-4
build: bump lnd dependency to v0.17.4-beta
2024-02-09 18:27:22 +01:00
Andras Banki-Horvath
12f7956fd8
build: bump lnd dependency to v0.17.4-beta 2024-02-09 18:20:18 +01:00
sputn1ck
b3fe9a9c61
loopd: add instantout quote 2024-02-08 17:52:08 +01:00
sputn1ck
7cafbe957d
loopd: add instantout handling 2024-02-06 15:07:59 +01:00
George Tsagkarelis
0914074b10
loop: integrate sweepbatcher to loopout flow 2024-01-23 20:38:10 +02:00
George Tsagkarelis
56784ab921
sweepbatcher: add sweep batch 2024-01-23 20:38:09 +02:00
George Tsagkarelis
b43fa11cc1
utils: add htlc & swap related helpers 2024-01-23 20:38:08 +02:00
George Tsagkarelis
a9be69b281
multi: use isExternalAddr flag 2024-01-23 20:38:07 +02:00
sputn1ck
f00329d7c7
loopd: hide reservation manager behind flag. 2024-01-17 15:59:08 +01:00
sputn1ck
49c40d9173
loopd: add reservation handling 2024-01-17 15:59:08 +01:00
sputn1ck
a38e817b49
swapserver: add listswaps filtering 2024-01-04 15:14:31 +01:00
Slyghtning
0bd4b7cf89
loopdb: state insufficient confirmed funds 2023-11-27 13:46:18 +01:00
Slyghtning
378d817f20
cmd: abandon api support 2023-11-27 11:14:14 +01:00
Slyghtning
5e91c446b8
loopd: abandon loop-ins 2023-11-27 11:14:13 +01:00
Slyghtning
427251d176
loopd: fix error checks and format 2023-11-15 10:51:31 +01:00
Slyghtning
79063d788a
db: refactor db opening 2023-10-13 10:39:17 +02:00
Oliver Gugger
08026dab93
multi: update linter, fix issues 2023-10-03 19:36:40 +02:00
sputn1ck
20db07dccf
fsm: add fsm module
This commit adds a module for a finite state machine. The goal of the
module is to provide a simple, easy to use, and easy to understand
finite state machine. The module is designed to be used in future
loop subsystems. Additionally a state visualizer is provided to
help with understanding the state machine.
2023-09-07 17:41:15 +02:00
Andras Banki-Horvath
cc24bebea8
loopd: always skip migration if loop_sqlite.db file already exists
This commit ensures that we don't even check for the existence of
the loop.db file if loop_sqlite.db already present. This is to ensure
that on systems that may by any trigger restore deleted files we don't
try to re-run migration which would otherwise make loopd unable to start
up properly.
2023-08-17 19:46:06 +02:00
Slyghtning
20316042d9
trivial: clean up typos and comments 2023-08-10 15:43:33 +02:00
sputn1ck
be9ca71bf2
loopd: convert unix millisecond timestamps to seconds 2023-08-08 08:42:16 +02:00
George Tsagkarelis
921f4d06e7
multi: integrate initiator string to various calls 2023-07-28 14:43:18 +03:00
Konstantin Nick
8986763470
Merge pull request #614 from gcaracuel/tlsvalidity_flag
Allow loopd autogenerated TLS cert validity override with a new flag
2023-07-27 16:27:05 +02:00
Guillermo Caracuel
7b31f1f64d
Update loopd/config.go
Co-authored-by: George Tsagkarelis <34623190+GeorgeTsagk@users.noreply.github.com>
2023-07-27 16:12:20 +02:00
gcaracuel
123d531c8b
Allow loopd autogenerated TLS cert validity override with a new loopd flag
Co-authored-by: George Tsagkarelis <34623190+GeorgeTsagk@users.noreply.github.com>
2023-07-27 16:04:06 +02:00
Slyghtning
ca933f843c
loopd: xpub support for loop out 2023-07-27 13:51:53 +02:00