Commit graph

389 commits

Author SHA1 Message Date
Oliver Gugger
c69325bf91
mod+macaroons: bump to lnd v0.11.1-beta.rc3
To make sure we can use the latest version of pool in LiT, we need to
make sure pool compiles against the actual v0.11.1 branch of lnd. There
were some conflicting changes to the macaroon service that didn't make
it to the branch that we need to roll back. Those changes don't affect
pool at all as we were always using the default root key ID anyway.
2020-09-18 09:00:11 +02:00
Olaoluwa Osuntokun
befbe78c4b
build: bump version to v0.2.2-alpha 2020-09-17 17:48:24 -07:00
Olaoluwa Osuntokun
b79d61b27d
Merge pull request #84 from Roasbeef/leases-expansion
multi: update README we leases and fee info, add more fields to leases, fix macaroon bug
2020-09-17 17:48:13 -07:00
Olaoluwa Osuntokun
eb7020a060
multi: add order and clearing rate to leases, show absolute expiry 2020-09-17 17:40:30 -07:00
Olaoluwa Osuntokun
6faea07291
macaroons: add Leases to macaroons permission list 2020-09-17 17:40:24 -07:00
Olaoluwa Osuntokun
b4f29cf5b5
README: update readme to include leases info, clarity on order pricing 2020-09-17 17:40:19 -07:00
Olaoluwa Osuntokun
40dbb3a34b
Merge pull request #82 from halseth/peer-connect-timeout
Make peer connect async (again)
2020-09-17 16:31:10 -07:00
Wilmer Paulino
7c7dfd0c36
Merge pull request #78 from guggero/macaroons
Add macaroon authentication
2020-09-17 15:17:24 -07:00
Johan T. Halseth
1979dbbe40
Merge pull request #83 from halseth/chanpoint-reversed
poolcli: output reversed chanpoint
2020-09-17 20:17:23 +02:00
Johan T. Halseth
294b0341c4
poolcli: output reversed chanpoint 2020-09-17 20:09:17 +02:00
Johan T. Halseth
c071b37cda
fundingmgr: inspect grpc error code
Since the code returned by the GRPC stream won't be the actual context
error, we must check the error code to determine whether this was the
error encountered.

Before this we would return the error directly, causing us to not send
partial reject to the server.
2020-09-17 13:29:31 +02:00
Johan T. Halseth
00bb324d38
fundingmgr: don't block on peer connection attempt
Since the call to connect to a peer is no longer async, a failed
connection would block and stall the whole execution logic until the
setupCtx was canceled. At that point the node we failed to connect with
would not be communicated back to the auctioneer, and we could get
matched with the same node in the next batch attempt.

This fixes that by starting the connection attempt in a go routine.
2020-09-17 13:29:31 +02:00
Johan T. Halseth
9cdf77b1cb
Merge pull request #81 from wpaulino/clearing-price-check
order: check order rate against matched batch clearing price
2020-09-17 11:09:44 +02:00
Johan T. Halseth
fefcd70a43
Merge pull request #79 from halseth/loose-balance-reservation
Lower default max batch fee rate
2020-09-17 09:54:44 +02:00
Johan T. Halseth
6183319c5d
poolcli: default the default max fee rate to a more reasonable 100 sat/b
A high max batch fee rate would reserve a lot of the account balance for
fees.

Note that if the actual fee rate goes higher than the max batch fee rate
set, then the orders won't be included in the batch, and the default
must be overridden.
2020-09-17 09:48:43 +02:00
Johan T. Halseth
120a2abfbc
poolcli: use sat/vbyte instead of sat/kw for batch feerate 2020-09-17 09:48:42 +02:00
Oliver Gugger
dc948a84c4
README: mention macaroons 2020-09-17 08:37:22 +02:00
Oliver Gugger
b9358dec8f
server: allow poold to be used as external subserver
When poold 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 llm macaroon, the pool daemon must be
able to validate its own macaroons as lnd's macaroon service doesn't
know the root key for it.
2020-09-17 08:37:22 +02:00
Oliver Gugger
b100fd3d6a
cmd/pool: add macaroon params to CLI 2020-09-17 08:37:22 +02:00
Oliver Gugger
1dc624a24a
config+server: add macaroon authentication to pool's server connn
To secure access to pool's RPC server, we add a macaroon authentication
service and its gRPC interceptors to the daemon's server connection.
2020-09-17 08:37:21 +02:00
Oliver Gugger
502892f81d
mod: bump lnd to v0.11.1-beta 2020-09-17 08:13:40 +02:00
Olaoluwa Osuntokun
e31447c93b
Merge pull request #70 from wpaulino/assets-rpc
poolrpc: add Leases RPC
2020-09-16 19:30:48 -07:00
Wilmer Paulino
d6ccb71ff9
order: check order rate against matched batch clearing price 2020-09-16 15:41:37 -07:00
Olaoluwa Osuntokun
ee4111a806
config: update to new testnet server domain 2020-09-16 15:37:07 -07:00
Wilmer Paulino
acfd41ca55
llm: add auction leases command 2020-09-15 11:57:26 -07:00
Wilmer Paulino
9becbf6231
clmrpc: add Leases RPC 2020-09-15 11:57:25 -07:00
Olaoluwa Osuntokun
a561562e3b
Merge pull request #73 from guggero/tls
Add TLS to poold's server connection
2020-09-14 17:52:18 -07:00
Oliver Gugger
e79bb2a3bd
README: mention TLS 2020-09-12 09:08:14 +02:00
Oliver Gugger
9bdfe415a6
cmd/pool: add TLS params to CLI 2020-09-12 09:08:14 +02:00
Oliver Gugger
32e1006ef6
config+server: add TLS to pool's server connection 2020-09-12 09:08:13 +02:00
Oliver Gugger
ce235cbc1d
multi: extract config validation
As a preparation to add more configuration paths for TLS, we first
extract the config validation and path cleanup into its own function.
2020-09-12 09:08:13 +02:00
Olaoluwa Osuntokun
2afc37c410
config: update w/ domain of mainnet server 2020-09-11 16:51:39 -07:00
Olaoluwa Osuntokun
0c21b3172b
build: bump version to v0.2.1-alpha 2020-09-11 16:49:43 -07:00
Olaoluwa Osuntokun
1aaf24a4ad
Merge pull request #69 from guggero/abandon-retried-channels
Abandon replaced channels
2020-09-11 16:49:10 -07:00
Olaoluwa Osuntokun
d3fe974c03
Merge pull request #67 from Roasbeef/allow-tor-client
multi: allow traders to submit orders w/ tor addrs, adjust connection logic accordingly
2020-09-11 16:42:50 -07:00
Olaoluwa Osuntokun
ec455fea00
Merge pull request #55 from halseth/store-batch-snapshots
Store local batch snapshots
2020-09-11 16:42:14 -07:00
Olaoluwa Osuntokun
691398f512
order: properly parse tor addrs in ParseRPCServerOrder 2020-09-11 16:33:43 -07:00
Olaoluwa Osuntokun
b6152281bb
batch: connect out to the taker as maker if behind tor
In this commit, we modify our connection logic to accommodate tor nodes
that wish to sell channels. If we detect a node has even a single Tor
addr, then we'll also try to connect out to the taker that we're selling
a channel to.
2020-09-10 20:22:45 -07:00
Olaoluwa Osuntokun
ad061cd491
order: allow tor addrs to be attached to orders
In this commit, we allow Tor addrs to be attached to orders. This will
allow clients to buy/sell channels using a Tor node, or a Tor-only node.
A follow up commit to this will adjust the client-side logic to have the
asker connect out to the bidder as well if the asker is behind a Tor
node.
2020-09-10 20:22:41 -07:00
Olaoluwa Osuntokun
76d8a94321
build: bump version to v0.2.0-alpha 2020-09-10 17:09:58 -07:00
Johan T. Halseth
b1a73f9320
Merge pull request #72 from guggero/gitlab
Add merge requests from GitLab
2020-09-10 18:00:27 +02:00
HenryBl
fc62a26929
docs: text changes 2020-09-10 14:24:35 +02:00
Nicolas Burtey
f456fe77c9
docs: fix typos 2020-09-10 14:23:50 +02:00
Gabriel Comte
ae86db048e
docs: fix typos in README 2020-09-10 14:23:10 +02:00
Oliver Gugger
5c6de594e9
README: add build/run prerequisites 2020-09-10 13:47:18 +02:00
Oliver Gugger
de2b86bd28
rpcserver: call AbandonCanceledChannels for replaced batch 2020-09-10 13:47:17 +02:00
Oliver Gugger
5a8825b8b4
order: add AbandonCanceledChannels 2020-09-10 13:47:17 +02:00
Oliver Gugger
123522e3b6
lnd+server+run: bump lnd to v0.11.1-beta
We update to the latest lnd version that contains the new flag in
AbandonChannel that we need. Because master is now tagged with
v0.x.99-beta, we can already increase the required version in the
server.
Because we touch this file anyway, let's as well avoid a bug in
lndclient that requires a subserver macaroon to be present even if we
don't need that subserver's functionality.
2020-09-10 13:47:17 +02:00
Oliver Gugger
f41043b901
order: extract channelOutput from batch verifier
As a preparation to abandon canceled channels, we first extract the
utility method to locate a channel output created in a batch from the
batch verifier into the batch itself.
2020-09-10 13:47:16 +02:00
Johan T. Halseth
0e665f592a
clientdb: store LocalBatchSnapshot on StorePendingBatch 2020-09-10 10:41:31 +02:00