2
0
mirror of https://github.com/lightninglabs/loop synced 2024-11-17 21:25:56 +00:00
Commit Graph

1383 Commits

Author SHA1 Message Date
Alex Bosworth
e4911a7269
version: bump version to v0.14.2-beta 2021-07-20 12:27:06 -04:00
Carla Kirk-Cohen
79100cc413
Merge pull request #405 from carlaKC/533-newserverstate
looprpc: add swap multiple swap scripts server state to rpc enum
2021-07-20 12:33:46 +02:00
Oliver Gugger
7091b90e95
Merge pull request #404 from guggero/fix-alpn-error
loopd: fix ALPN issue with Python
2021-07-19 13:55:04 +02:00
carla
b8f1fd1c4e
release_notes: add grpc error code surfacing 2021-07-19 10:28:35 +02:00
carla
d1c26a20da
multi: surface server swap initiation grpc error codes
Formatting our error was stifling any grpc error returned by the
server. Instead, we bubble up our grpc error, setting an unknown
code if the server did not specifically return an error code.
2021-07-19 10:28:34 +02:00
carla
94692678f3
looprpc: add swap multiple swap scripts server state to rpc enum
Add a new failure state that the server may send to the client.
This state is sent for loop in swaps where the client has
erroneously published multiple outputs for a loop in swap (this
could happen if an end user created an external tx with too many
outputs). Failing the swap server side protects users from potential
footguns where they publish the hltc then the server can claim more
money than was paid out off chain. This can never happen when the
loop client publishes the htlc because it only ever contains one
output.
2021-07-16 10:28:17 +02:00
Oliver Gugger
5178cd1158
release_notes: update with Python ALPN fix 2021-07-15 12:55:56 +02:00
Oliver Gugger
e7ee29bd83
Merge pull request #403 from guggero/docker-rpc
looprpc: generate protos with docker
2021-07-15 11:28:27 +02:00
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.
2021-07-14 17:21:54 +02:00
Oliver Gugger
77f7b73570
looprpc: document missing CLI commands 2021-07-14 16:08:53 +02:00
Oliver Gugger
4e45c2908a
loopd: fix ALPN issue with Python
There is an open issue for Python gRPC clients that is
currently being debugged grpc/grpc#23172

It can be mitigated server-side by specifying h2 in the metadata header.
2021-07-13 22:04:28 +02:00
Oliver Gugger
86df44362f
make+looprpc: use Docker to compile and format protos 2021-07-13 09:41:28 +02:00
Oliver Gugger
67c81204f6
looprpc: extract REST annotations into yaml 2021-07-13 09:37:08 +02:00
Olaoluwa Osuntokun
df5924f25a
Merge pull request #400 from Roasbeef/lnd-013
build: pin against lnd v0.13.0
2021-06-17 17:25:26 -07:00
Olaoluwa Osuntokun
e24559fdc7
build: pin against lnd v0.13.0 2021-06-17 17:19:04 -07:00
Alex Bosworth
12d8fd0b76
Merge pull request #398 from lightninglabs/update-to-v0.14.1-beta
version: bump version to v0.14.1-beta
2021-06-09 09:47:03 -07:00
Alex Bosworth
cec9a9fe06
version: bump version to v0.14.1-beta 2021-06-09 08:36:44 -07:00
Carla Kirk-Cohen
71eb88b2fa
Merge pull request #396 from carlaKC/subscribesingle-eof
loopin: handle SubscribeSingleInvoice termination
2021-06-09 12:40:57 +02:00
Carla Kirk-Cohen
087066bafe
Merge pull request #395 from carlaKC/390-uniquenames
looprpc: prefix server and lnd enums to create unique names
2021-06-08 20:45:00 +02:00
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.
2021-06-08 16:24:04 +02:00
carla
7dca93fd88
go.mod: bump to lndclient version that handles EOF 2021-06-08 16:24:02 +02:00
carla
cae72b5848
loopin/test: move invoice updates to loopin test context 2021-06-07 11:01:48 +02:00
carla
a3c8e54bf4
release_notes: note proto warning fixed 2021-06-03 11:01:09 +02:00
carla
1bdcc2cd41
looprpc: prefix server and lnd enums to create unique names 2021-06-03 10:52:25 +02:00
Alex Bosworth
9d3d9ce680
Merge pull request #393 from lightninglabs/bump-to-v0.14.0-beta
version: bump version to v0.14.0-beta
2021-06-01 12:57:53 -07:00
Alex Bosworth
2d48842605
version: bump version to v0.14.0-beta 2021-06-01 10:02:31 -07:00
Alex Bosworth
beff8964f7
Merge pull request #391 from mauricepoirrier/patch-1
docs: typo
2021-05-31 16:38:47 -07:00
Maurice Poirrier
346ec2176c
docs: typo 2021-05-31 19:23:57 -04:00
Carla Kirk-Cohen
124eeea9d3
Merge pull request #378 from carlaKC/383-cancelation
loopout: Add swap cancelation for swaps that cannot route off-chain
2021-05-25 15:27:37 +02:00
carla
6350d873e0
release_notes: add swap cancelation feature 2021-05-24 08:46:06 +02:00
carla
3aee9ae924
looprpc: add new server states for client-initiated cancelation 2021-05-24 08:46:05 +02:00
carla
f166ce899d
loopout: cancel swap with server when off-chain fails 2021-05-24 08:46:03 +02:00
carla
6b732bacee
executor: fix linter error 2021-05-24 08:40:15 +02:00
carla
16111352a8
multi: add cancel swap function to execute config 2021-05-24 08:40:14 +02:00
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.
2021-05-24 08:40:13 +02:00
carla
969e300241
loop: add cancel swap to server interface 2021-05-24 08:40:13 +02:00
carla
71501ef2e8
looprpc: add server cancelation rpc to server.proto 2021-05-24 08:40:12 +02:00
Alex Bosworth
0a8e037e61
Merge pull request #389 from lightninglabs/alexbosworth-patch-1
docs: remove pending release notice
2021-05-19 10:04:38 -07:00
Alex Bosworth
5df67ddbbf
docs: remove pending release notice 2021-05-19 09:16:40 -07:00
Oliver Gugger
b8e1fb8a34
Merge pull request #388 from lightninglabs/lnd-0.13
Prepare for lnd v0.13.0 and upcoming LiT version
2021-05-19 15:10:05 +02:00
Oliver Gugger
fdbf7e95e1
client: fix double hex encoding of node pubkey 2021-05-19 14:25:28 +02:00
Oliver Gugger
7453a72759
version: bump version to v0.13.0-beta 2021-05-19 14:25:28 +02:00
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.
2021-05-19 14:25:23 +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
Carla Kirk-Cohen
245e6b7917
Merge pull request #372 from carlaKC/sweep-abandon
loopout: do not reveal preimage too close to expiry
2021-05-17 13:28:21 +02:00
carla
9db8bd5f2a
loopout: do not reveal preimage if time to safe reveal has passed 2021-05-12 14:09:28 +02:00
yyforyongyu
8d4404a8fb
loopout: add test for checking preimage reveal after timeout 2021-05-12 14:00:59 +02:00
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.
2021-05-12 14:00:44 +02:00
Alex Bosworth
db56b31b11
Merge pull request #379 from lightninglabs/v0.12.2-beta-release
version: bump to v0.12.2-beta
2021-04-29 08:40:27 -07:00
Alex Bosworth
9b5a3401fc
version: bump to v0.12.2-beta 2021-04-29 08:24:36 -07:00