Commit Graph

51 Commits (master)

Author SHA1 Message Date
sputn1ck 7cafbe957d
loopd: add instantout handling 2 months ago
George Tsagkarelis 0914074b10
loop: integrate sweepbatcher to loopout flow 2 months ago
sputn1ck f00329d7c7
loopd: hide reservation manager behind flag. 2 months ago
sputn1ck 49c40d9173
loopd: add reservation handling 2 months ago
Slyghtning 427251d176
loopd: fix error checks and format 4 months ago
Slyghtning 79063d788a
db: refactor db opening 6 months ago
Oliver Gugger 08026dab93
multi: update linter, fix issues 6 months ago
Slyghtning 20316042d9
trivial: clean up typos and comments 8 months ago
sputn1ck a2abcd07d8
loopd: Run migration if boltdb exists 9 months ago
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.
9 months ago
Slyghtning 043f780198 loopd: adding getInfo rpc call 10 months ago
sputn1ck ec2ed79f48
loopd: fix macaroons typo
This commit fixes a typo which leads to a broken macaroon store.
1 year ago
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.
1 year ago
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
2 years ago
Andras Banki-Horvath 00cf4bf71c
multi: make the next protocol version optional 2 years ago
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.
2 years ago
Elle Mouton 2d7745ecf4 loopd/daemon: rename createDefaultMacaroonFile
Rename createDefaultMacaroonFile to withMacaroonService since this is
now a more appropriate name.
2 years ago
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.
2 years ago
Andras Banki-Horvath b3d8f5f096
loopd: close dbs when the daemon stops 2 years ago
Carla Kirk-Cohen 04b4f0a389
Merge pull request #432 from carlaKC/export-listnerconfig
loopd: export NewListenerConfig
2 years ago
carla 618310fe6f
loopd: export NewListenerConfig 2 years ago
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.
2 years ago
Oliver Gugger 2c6e035235
multi: bump lnd compile time dependency to v0.14.0-beta.rc1 2 years ago
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.
3 years ago
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.
3 years ago
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.
3 years ago
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.
3 years ago
carla 8166d936e1
multi: add opt-in automated swap dispatch to liquidity manager 4 years ago
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.
4 years ago
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.
4 years ago
Oliver Gugger a8d93bec6a
loopd: add TLS to the daemon's server connection 4 years ago
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.
4 years ago
carla ce10cc7959
liquidity: add manager with updatable parameters 4 years ago
Joost Jager 0c9fcd790e
lndclient: move to github.com/lightninglabs/lndclient 4 years ago
Joost Jager b61b886c16
loopd: group and clarify swap server parameters 4 years ago
Oliver Gugger 774a44fac1
loopd: add StartAsSubserver method and started flag 4 years ago
Oliver Gugger 506d0c2257
loopd: refactor into Start/Stop methods 4 years ago
Oliver Gugger 215e5b99d6
loopd: extract daemon into struct 4 years ago
Oliver Gugger e696a38ec8
loopd: export Config struct 4 years ago
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.
4 years ago
Oliver Gugger ae376a49ba
loopd: fix linter issue 4 years ago
Oliver Gugger 8c7eee2ba9
loopd: add option to configure CORS origin 4 years ago
Oliver Gugger 26c0c17dbd
loopd+cli: set max gRPC message receive size 4 years ago
Oliver Gugger e070494565
loopd: instruct REST proxy to print default values 4 years ago
Oliver Gugger 403b4097de
loopd: move global state into server state 4 years ago
Oliver Gugger ccdbc3b21b
multi: thread new config values through client 4 years ago
Johan T. Halseth 34c2e71f9e
loopd: move lnd services init to config
This allows us to supply custom lnd connections to the daemon.
4 years ago
Johan T. Halseth c7e8c9f964
loopd: make RPC listener configurable
Allows to use external listener, such as in-memory.
4 years ago
Johan T. Halseth 0f0573c047
loopd/daemon: make server gRPC/REST listeners configurable 4 years ago
Johan T. Halseth 391ae9dc6b
loopd/daemon: handle proxy error
Check returned error to make linter happy.
4 years ago