Commit Graph

211 Commits (627eb5cb68a9c0c6bf30f78f2e2faa53ad6c9927)

Author SHA1 Message Date
sputn1ck f00329d7c7
loopd: hide reservation manager behind flag. 5 months ago
sputn1ck 49c40d9173
loopd: add reservation handling 5 months ago
sputn1ck a38e817b49
swapserver: add listswaps filtering 5 months ago
Slyghtning 0bd4b7cf89
loopdb: state insufficient confirmed funds 6 months ago
Slyghtning 378d817f20
cmd: abandon api support 6 months ago
Slyghtning 5e91c446b8
loopd: abandon loop-ins 6 months ago
Slyghtning 427251d176
loopd: fix error checks and format 7 months ago
Slyghtning 79063d788a
db: refactor db opening 8 months ago
Oliver Gugger 08026dab93
multi: update linter, fix issues 8 months ago
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.
9 months ago
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.
10 months ago
Slyghtning 20316042d9
trivial: clean up typos and comments 10 months ago
sputn1ck be9ca71bf2
loopd: convert unix millisecond timestamps to seconds 10 months ago
George Tsagkarelis 921f4d06e7
multi: integrate initiator string to various calls 10 months ago
Konstantin Nick 8986763470
Merge pull request #614 from gcaracuel/tlsvalidity_flag
Allow loopd autogenerated TLS cert validity override with a new flag
10 months ago
Guillermo Caracuel 7b31f1f64d
Update loopd/config.go
Co-authored-by: George Tsagkarelis <34623190+GeorgeTsagk@users.noreply.github.com>
10 months ago
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>
10 months ago
Slyghtning ca933f843c
loopd: xpub support for loop out 10 months ago
sputn1ck ca032b1f1d
multi: expose l402 id in grpc interface
This commit adds an additional field to the tokens in order to fetch the
relevant l402 ids for the users tokens.
12 months ago
sputn1ck 270bc3104e
multi: add sql stores to loopd
This commit adds the ability to choose between different sql stores
for loopd. The default is sqlite, but it can be changed to postgres.
12 months ago
sputn1ck a2abcd07d8
loopd: Run migration if boltdb exists 12 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.
12 months ago
George Tsagkarelis a48924a664
liquidity: get autoloop flag directly from params
Previously we would exclusively pass the autoloop boolean to multiple
functions while they had directly access to the manager's parameters.
With this commit we remove this explicit flag from the various function
interfaces and retrieve the value directly from the parameters.
1 year ago
Slyghtning 043f780198 loopd: adding getInfo rpc call 1 year ago
George Tsagkarelis fad9f40ae3
liquidity+loopd: add easy autoloop
Adds the easy autoloop function which executes a budget update and the
best easy-autoloop swap. The easy-autoloop function re-uses functions
used in the normal autoloop that relate to on-going swaps and traffic
summary.
1 year 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 451311d582
build: bump lnd dep to v0.16.0-beta 1 year ago
George Tsagkarelis aca6428b0e
liquidity+loopd: move last budget refresh to parameters 1 year ago
George Tsagkarelis af7a470aea
liquidity+loopd: add sticky loop out swap with amount backoff 1 year ago
George Tsagkarelis b025b9ae37
multi: add recurring autoloop budget 1 year ago
Andras Banki-Horvath 4ab6c65186
dep+build: bump LND dependency to include GenCertPair fix 1 year ago
Andras Banki-Horvath 476f47275b
loopd: set minimum LND version to 0.15.99-beta 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
George Tsagkarelis fa0393b331
multi: add OutAddr parameter for autoloop loop out 1 year ago
Andras Banki-Horvath 049b17ff96
misc: refactor loop tests to use require where possible 2 years ago
Andras Banki-Horvath bdb4b773ed
swap: refactor htlc construction to allow passing of internal keys
This commit is a refactor of how we construct htlcs to make it possible
to pass in internal keys for the sender and receiver when creating P2TR
htlcs. Furthermore the commit also cleans up constructors to not pass in
script versions and output types to make the code more readable.
2 years ago
Andras Banki-Horvath 105d3d1ab4
loopd: bump minimum lnd version to v0.15.4 2 years ago
Andras Banki-Horvath 88956455b4
multi: completely remove support for NP2WSH htlcs
This commit removes all code related to NP2WSH htlcs. These were
historically used when segwit adoption was very sporadic and are not
used anywhere anymore. Some historical swaps stored in the DB may be
listed with incorrect htlc adresses from here on.
2 years ago
Andras Banki-Horvath b36885fb65
loopd: correct htlc output type on view command
Previously view may have set the output type wrongly for internal p2wsh
and p2tr loop-in swaps which is corrected in this commit.
2 years ago
Andras Banki-Horvath 977b72019d
loopd: bump minimum lnd version to v0.15.1-beta
In this commit we bump the minimum LND version required to run loopd to
v0.15.1-beta in order to ensure that the underlying chain backend
supports taproot (https://github.com/lightningnetwork/lnd/pull/6798)
2 years ago
sputn1ck 0f924b36cd
multi: bump lndclient and lnd version to latest
Co-authored-by: Oliver Gugger <gugger@gmail.com>
2 years 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 85145ca4bb
loop: set minimum LND version to 0.15.0 2 years ago
Andras Banki-Horvath 391ef57ea3
loopout: enable p2tr without keyspend 2 years ago
Andras Banki-Horvath 901a935514
loopin: enable p2tr htlcs without keyspend 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
András Bánki-Horváth 8f23c6789b
Merge pull request #477 from bhandras/taproot-htlc
multi: changes to the taproot HTLC  required for both client and server
2 years ago
Andras Banki-Horvath 9610becebd
multi: add the aggregate internal pubkey to the v3 htlc 2 years ago
sputn1ck 1df6685653
looprpc: fix suggestswaps response
This commit fixes the SuggestSwaps rpc call. Previously, when multiple
DisqualifiedPeers were provided, all pubkeys would be the same.
2 years ago