2
0
mirror of https://github.com/lightninglabs/loop synced 2024-11-09 19:10:47 +00:00
Commit Graph

56 Commits

Author SHA1 Message Date
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
Andras Banki-Horvath
3754730525
loop: paginate fetching payments when running the cost migration 2024-06-05 08:54:24 +02:00
Andras Banki-Horvath
c7fa1e4109
loopd: run the cost migration on start 2024-06-03 14:54:18 +02:00
Slyghtning
636f8b611b
daemon: fix wrapped errors and typos 2024-05-01 07:55:01 +02:00
Boris Nagaev
e30cb5f2a8
multi: apply make fmt 2024-04-23 15:18:15 -03: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
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
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
Slyghtning
20316042d9
trivial: clean up typos and comments 2023-08-10 15:43:33 +02:00
sputn1ck
a2abcd07d8
loopd: Run migration if boltdb exists 2023-06-20 18:59:32 +02:00
sputn1ck
becc8a38d8
multi: use context in loopdb call
This commit adds a context to our loopdb interface, which we should use
in the sqlite migration.
2023-06-19 12:28:32 +02:00
Slyghtning
043f780198 loopd: adding getInfo rpc call 2023-05-24 17:50:24 +02:00
sputn1ck
ec2ed79f48
loopd: fix macaroons typo
This commit fixes a typo which leads to a broken macaroon store.
2023-03-29 16:19:08 +02:00
Andras Banki-Horvath
a7451622e5
mod: bump LND and lndclient to include musig2 1.0rc2 changes
This commit bumps LND and lndclient to make it possible to upgrade
taproot HTLC construction with a MuSig2 version. This is required to
support both old (MuSig2 0.4) and new (MuSig2 1.0) clients.
2023-02-06 20:46:03 +01:00
András Bánki-Horváth
11ab596080
Merge pull request #497 from bhandras/taproot-musig2
multi: upgrade to using P2TR htlcs and added support for MuSig2 loopout sweep
2022-07-06 22:46:29 +02:00
Andras Banki-Horvath
00cf4bf71c
multi: make the next protocol version optional 2022-06-30 16:59:54 +02:00
Elle Mouton
8ccd35e0c1
loopd: move RequiredPermissions to dedicated dir
This commit moves the RequiredPermissions map to its own directory so
that projects importing the permissions list dont need to import all the
dependencies of the loopd package.
2022-06-14 15:13:34 +02:00
Elle Mouton
2d7745ecf4 loopd/daemon: rename createDefaultMacaroonFile
Rename createDefaultMacaroonFile to withMacaroonService since this is
now a more appropriate name.
2022-01-17 16:13:19 +02:00
Elle Mouton
ad7cdc8ed2 multi: use lndclient MacaroonService
Since the code for creating and using a macaroon service is the same for
multiple projects (pool, loop, litd etc), the code has been unified in
lndclient. So this commit removes the macaroon service code and instead
uses the lndclient code.
2022-01-17 16:13:19 +02:00
Andras Banki-Horvath
b3d8f5f096
loopd: close dbs when the daemon stops 2021-12-22 10:32:11 +01:00
Carla Kirk-Cohen
04b4f0a389
Merge pull request #432 from carlaKC/export-listnerconfig
loopd: export NewListenerConfig
2021-11-18 10:03:33 +01:00
carla
618310fe6f
loopd: export NewListenerConfig 2021-11-12 11:26:07 +02:00
Turtle
1503001ee5
loopd: conditionally create default macaroon file
In some cases we don't want the default macaroon file to be created on
disk, so we allow passing in a boolean that toggles the macaroon
creation.
2021-11-04 14:09:27 +01:00
Oliver Gugger
2c6e035235
multi: bump lnd compile time dependency to v0.14.0-beta.rc1 2021-11-03 19:31:21 +01:00
Oliver Gugger
a7fff0ac2f
multi: update lnd master with grpc-gateway upgrade
To make loop work with the latest lnd version inside of LiT, we need
to upgrade the grpc-gateway library to the same v2 version here too.
2021-07-29 17:02:06 +02:00
Oliver Gugger
32f1f2657b
multi: bump lnd to version v0.13.0-beta.rc2
This commit bumps the _compile time_ version of lnd to v0.13.0-beta.rc2.
This does not have an effect on the user, the run time backward compatibility
will be preserved. Only the next commit will bump that minimum version.
2021-05-19 14:24:41 +02:00
Oliver Gugger
39c8c9278d
loopd+loopdb: add timeout to DB open
To make sure we don't just block for forever if another Loop daemon
process is already running, we add a timeout and error out if obtaining
the unique file lock fails after 5 seconds.
2021-04-28 17:16:27 +02:00
carla
87b02b7715
multi: add force tick endpoint behind debug server
To itest our autolooper, we need to be able to trigger dispatch on
demand. This functionality is included in a separate rpc server behind
a dev flag. Since it is unlikely that we need to split loop into
multiple rpc servers, this commit simply adds an additional debug server
rather than opting for a full subserver setup.
2020-10-15 13:53:27 +02:00
carla
8166d936e1
multi: add opt-in automated swap dispatch to liquidity manager 2020-10-12 13:34:55 +02:00
Oliver Gugger
617964e25f
loopd: allow loopd to be used as external subserver
When loopd runs in the same process as lnd (in LiT), it hooks itself
into lnd's RPC server as an external subserver. But because the user
should still be able to use the default loop macaroon, the loop daemon
must be able to validate its own macaroons as lnd's macaroon service
doesn't know the root key for it.
2020-09-11 12:25:39 +02:00
Oliver Gugger
751c70e6c7
loopd: add macaroon authentication to the daemon's server connection
To secure access to loop's RPC server, we add a macaroon authentication
service and its gRPC interceptors to the daemon's server connection.
2020-09-11 12:24:53 +02:00
Oliver Gugger
a8d93bec6a
loopd: add TLS to the daemon's server connection 2020-09-03 14:19:51 +02:00
Oliver Gugger
17e0165d4c
loopd: add TLS config to listenerCfg struct
As a preparation to be able to listen on a TLS enabled listener, we add
a TLS config parameter to the listener setup functions.
2020-09-03 13:25:59 +02:00
carla
ce10cc7959
liquidity: add manager with updatable parameters 2020-09-02 11:48:27 +02:00
Joost Jager
0c9fcd790e
lndclient: move to github.com/lightninglabs/lndclient 2020-06-18 14:27:52 +02:00
Joost Jager
b61b886c16
loopd: group and clarify swap server parameters 2020-06-15 16:18:34 +02:00
Oliver Gugger
774a44fac1
loopd: add StartAsSubserver method and started flag 2020-05-28 12:34:38 +02:00
Oliver Gugger
506d0c2257
loopd: refactor into Start/Stop methods 2020-05-28 12:34:04 +02:00
Oliver Gugger
215e5b99d6
loopd: extract daemon into struct 2020-05-25 13:16:34 +02:00
Oliver Gugger
e696a38ec8
loopd: export Config struct 2020-05-25 13:16:33 +02:00
Wilmer Paulino
5b732d9012
loopd: add SOCKS proxy config option to dial swap server over Tor
This allows Loop users to further improve their privacy by not revealing
their source IP address. Note that the identity of the lnd node behind
Loop can still be revealed when performing a Loop In due to the swap
server extending an off-chain HTLC to the user.

Onion addresses don't yet exist for the swap servers, but they will be
added at a later time.
2020-03-06 16:40:30 -08:00
Oliver Gugger
ae376a49ba
loopd: fix linter issue 2020-02-06 11:59:48 +01:00
Oliver Gugger
8c7eee2ba9
loopd: add option to configure CORS origin 2020-02-06 11:48:09 +01:00
Oliver Gugger
26c0c17dbd
loopd+cli: set max gRPC message receive size 2020-01-31 13:57:26 +01:00
Oliver Gugger
e070494565
loopd: instruct REST proxy to print default values 2020-01-31 13:57:24 +01:00
Oliver Gugger
403b4097de
loopd: move global state into server state 2020-01-31 13:57:21 +01:00