Commit Graph

773 Commits (803773bb65a5bae560151896a86bcc161c47ca9d)
 

Author SHA1 Message Date
Oliver Gugger 803773bb65
loop+loopd: fix linter after re-generating protos
Apparently re-generating the protos caused the linter to pick up on
fields that are now deprecated. We need to fix that with a few comments.
3 years ago
Oliver Gugger 77f7b73570
looprpc: document missing CLI commands 3 years ago
Oliver Gugger 86df44362f
make+looprpc: use Docker to compile and format protos 3 years ago
Oliver Gugger 67c81204f6
looprpc: extract REST annotations into yaml 3 years ago
Olaoluwa Osuntokun df5924f25a
Merge pull request #400 from Roasbeef/lnd-013
build: pin against lnd v0.13.0
3 years ago
Olaoluwa Osuntokun e24559fdc7
build: pin against lnd v0.13.0 3 years ago
Alex Bosworth 12d8fd0b76
Merge pull request #398 from lightninglabs/update-to-v0.14.1-beta
version: bump version to v0.14.1-beta
3 years ago
Alex Bosworth cec9a9fe06
version: bump version to v0.14.1-beta 3 years ago
Carla Kirk-Cohen 71eb88b2fa
Merge pull request #396 from carlaKC/subscribesingle-eof
loopin: handle SubscribeSingleInvoice termination
3 years ago
Carla Kirk-Cohen 087066bafe
Merge pull request #395 from carlaKC/390-uniquenames
looprpc: prefix server and lnd enums to create unique names
3 years ago
carla 0e72c2bf92
loopin: handle EOF case for SubscribeSingleInvoice
From lnd 0.13.0, the SubscribeSingleInvoice rpc will return an EOF
once it has served a final state to the stream. This is handled in
our lndclient wrapper by closing the channels that we send updates/
errors on. When we are exclusively consuming updates from these
streams, we don't need to handle this case because we will receive
our final update and exit. However, in the case where we continue
to listen on the update channels after consuming the final update,
we need to handle this EOF/closed channels case. This is done by
setting the channels to nil after they're closed so that we no
longer select on them but can continue waiting for our other cases
to complete.

We have similar handling in loopout's waitForHtlcSpendConfirmed.
3 years ago
carla 7dca93fd88
go.mod: bump to lndclient version that handles EOF 3 years ago
carla cae72b5848
loopin/test: move invoice updates to loopin test context 3 years ago
carla a3c8e54bf4
release_notes: note proto warning fixed 3 years ago
carla 1bdcc2cd41
looprpc: prefix server and lnd enums to create unique names 3 years ago
Alex Bosworth 9d3d9ce680
Merge pull request #393 from lightninglabs/bump-to-v0.14.0-beta
version: bump version to v0.14.0-beta
3 years ago
Alex Bosworth 2d48842605
version: bump version to v0.14.0-beta 3 years ago
Alex Bosworth beff8964f7
Merge pull request #391 from mauricepoirrier/patch-1
docs: typo
3 years ago
Maurice Poirrier 346ec2176c
docs: typo 3 years ago
Carla Kirk-Cohen 124eeea9d3
Merge pull request #378 from carlaKC/383-cancelation
loopout: Add swap cancelation for swaps that cannot route off-chain
3 years ago
carla 6350d873e0
release_notes: add swap cancelation feature 3 years ago
carla 3aee9ae924
looprpc: add new server states for client-initiated cancelation 3 years ago
carla f166ce899d
loopout: cancel swap with server when off-chain fails 3 years ago
carla 6b732bacee
executor: fix linter error 3 years ago
carla 16111352a8
multi: add cancel swap function to execute config 3 years ago
carla 4040bb356d
loopout: refactor payInvoice to return more payment information
We're going to want more information about our failures going
forward, so we refactor payInvoice to return a full payment
status. The primary change in this commit is that we surface
both types of payment failures (result.err when we fail immediately,
and lnrpc.Failure when our payment is failed back) and return them
in the failure() method, rather than combining this information
at a lower level.
3 years ago
carla 969e300241
loop: add cancel swap to server interface 3 years ago
carla 71501ef2e8
looprpc: add server cancelation rpc to server.proto 3 years ago
Alex Bosworth 0a8e037e61
Merge pull request #389 from lightninglabs/alexbosworth-patch-1
docs: remove pending release notice
3 years ago
Alex Bosworth 5df67ddbbf
docs: remove pending release notice 3 years ago
Oliver Gugger b8e1fb8a34
Merge pull request #388 from lightninglabs/lnd-0.13
Prepare for lnd v0.13.0 and upcoming LiT version
3 years ago
Oliver Gugger fdbf7e95e1
client: fix double hex encoding of node pubkey 3 years ago
Oliver Gugger 7453a72759
version: bump version to v0.13.0-beta 3 years ago
Oliver Gugger 45dbd582d1
multi: bump lnd min version to v0.11.1-beta
The version v0.10.1-beta of lnd is quite old with v0.13.0-beta just
being published as RC2. Maintaining backward compatibility in the
lndclient library is quite an effort. We decided to merge the v0.11.1
branch into master meaning that all our projects now have this minimum
version requirement.
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
Carla Kirk-Cohen 245e6b7917
Merge pull request #372 from carlaKC/sweep-abandon
loopout: do not reveal preimage too close to expiry
3 years ago
carla 9db8bd5f2a
loopout: do not reveal preimage if time to safe reveal has passed 3 years ago
yyforyongyu 8d4404a8fb
loopout: add test for checking preimage reveal after timeout 3 years ago
carla ab9a662758
loop/test: simplify preimage push test to be less dependent on height
Our preimage push test previously relied on our dropping down to the
default sweep conf target to mock a drop in chain fees. This makes
our test dependent on height, which makes changes to our sweep logic
regarding when we reveal our preimage break this test. In this commit
that logic is replaced with simply locking our mock and updating fees
on the fly.
3 years ago
Alex Bosworth db56b31b11
Merge pull request #379 from lightninglabs/v0.12.2-beta-release
version: bump to v0.12.2-beta
3 years ago
Alex Bosworth 9b5a3401fc
version: bump to v0.12.2-beta 3 years ago
András Bánki-Horváth ef296e9c74
Merge pull request #377 from bhandras/chainnoitifer_fix
loop: wait for chain notifier server to start
3 years ago
Andras Banki-Horvath a0b67da590
loop: wait for chain notifier server to start 3 years ago
Oliver Gugger 5d39ffec42
Merge pull request #375 from guggero/lsat-aperture
lsat: use package from aperture
3 years ago
Oliver Gugger 68c22d7192
lsat: remove local lsat package
We now only use the lsat package imported from aperture and can
therefore delete a whole bunch of duplicated code.
3 years ago
Oliver Gugger 27fd6b3304
multi: use aperture instead of local lsat library
Since the lsat code was copied over to aperture a while ago for other
projects to use as well, we should migrate over to that shared code
also. This will give us the recently added "remove token if payment
failed and try again" feature for free along with some other small
updates to the lsat package.
3 years ago
Oliver Gugger 9fe7ab1a0d
Merge pull request #374 from guggero/db-timeout
loopd+loopdb: add timeout to DB open
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
András Bánki-Horváth c4c1f32bd9
Merge pull request #371 from ellemouton/bumpGoVersion
multi: bump minimum golang version to 1.15
3 years ago
Elle Mouton 208e1acc57 multi: bump minimum golang version to 1.15
Bump the minimum golang version to 1.15 in the go.mod file. The go
version is also updated in the Dockerfile and travis.yml file. This is
required so that the correct `errors.Is` method is used.
3 years ago