Commit graph

93 commits

Author SHA1 Message Date
Oliver Gugger
f460060692
wasm 2021-05-25 14:21:39 +02:00
Oliver Gugger
327b6a703d
multi: bump lnd to version v0.13.0-beta.rc2 2021-05-19 14:28:53 +02:00
Olaoluwa Osuntokun
37947e5de5
cmd/pool: for sidecar offers parse complete bid if auto flag is set
Otherwise, we'll just parse out the 3 fields we actually need. Only if
the auto flag is set do we need to collect the complete bid as normal.
2021-05-09 19:25:13 -07:00
Olaoluwa Osuntokun
23b5144c47
cmd/pool: extract bid flags and parsing into new functions/variables
This sets us up to re-use these values in the next commit to parse out
the new complete set of fields that are required for a sidecar ticket.
2021-05-09 19:25:11 -07:00
Olaoluwa Osuntokun
064ef461d2
poolrpc: modify OfferSidecarRequest to embed bid expose auto flag
In this commit, we modify the `OfferSidecarRequest` to instead embed the
entire bid order. This makes parsing on the command line a bit easier,
and sets us up for auto negotiation, as we'll need to have the entire
bid ahead of time so we can submit it during ticket negotiation.
2021-05-09 19:24:52 -07:00
Oliver Gugger
8677f8272a
cmd/pool: use QuoteOrder RPC for printing order details
With the same order quote calculation now available as an RPC, we no
longer need to do the calculation in the CLI code and can instead use
the new QuoteOrder call.
2021-05-05 15:58:50 +02:00
Oliver Gugger
5f7f4cd7f4
multi: add sidecar channel info to leases list
A sidecar channel uses different multisig keys than a normal order so we
need to fix the lookup in the batch transaction. While we're at it, we
might as well return the self chan balance and whether it was a sidecar
channel in the leases response.
2021-04-07 14:19:30 +02:00
Oliver Gugger
14da89be07
cmd/pool: add sidecar commands for offer/register/expect
With the RPC methods now in place, we add a new sidecar subcommand to
our CLI and add verbs for interacting with sidecars to it.
Because the ticket is in an encoded form we also add a printticket
subcommand for easy inspection.
2021-04-07 14:14:11 +02:00
Oliver Gugger
8d9677e796
cmd/pool: add self_chan_balance to bid order submission
We update the bid order submission CLI and add the --self_chan_balance
flag that will request an initially balanced channel to be leased.
To make sure that askers can signal that they understand that new
feature, we also bump the submitted order version for ask orders.
2021-03-19 16:50:31 +01:00
carla
1736a28ebf
poold: exit with non-zero error code if main fails 2021-02-02 13:34:53 +02:00
Oliver Gugger
3e844c8f3e
cmd/pool: add getinfo and stop commands 2021-02-02 09:57:18 +01:00
Oliver Gugger
9fcf7e42c0
cmd/pool: add initiator string
We add the initiator string "pool-cli" to the account open and order
submission calls to give the server an idea what user facing software
was used for those actions.
2021-01-29 12:56:23 +01:00
Oliver Gugger
83b458b504
multi: move auctioneer proto to auctioneerrpc package
As a preparation to extract the auctioneer proto package into its own
sub-module, we move it out of the poolrpc package.
2021-01-22 10:41:44 +01:00
Wilmer Paulino
7a5cd90e9a
pool: add cli command to renew account 2021-01-08 14:02:27 +01:00
Wilmer Paulino
bb4929c551
pool: set 30d expiry default for new account creation 2021-01-08 14:02:26 +01:00
Oliver Gugger
da3a1ab1c6
cmd/pool: don't display deprecated fields in CLI 2021-01-08 14:02:17 +01:00
Oliver Gugger
a27fd7c1a0
multi: add and use new order version
We add a new order version that is allowed to submit lease durations
outside of the default/legacy 2016 block duration.
No new fields are added, so nothing changes in the serialization or the
digest. This version only signals that the client is able to process
batch requests with multiple duration buckets.
2021-01-08 14:02:11 +01:00
Oliver Gugger
8b57bb9a4e
multi: replace PendingBatch with PendingBatchSnapshot
To be able to fully clean up an old, pending batch snapshot on daemon
startup, we first need to switch to a method that returns the full
snapshot instead of just its ID.
2020-12-09 09:42:30 +01:00
Oliver Gugger
380646704f
cmd/pool: add num_batches to snapshot command 2020-11-30 23:44:27 +01:00
cryptagoras
08b822ea57
cmd/pool: fix typo on account deposit 2020-11-28 12:35:52 +02:00
Oliver Gugger
246d685179
cmd/pool: add debug commands 2020-11-24 14:28:02 +01:00
Oliver Gugger
c1636137e2
cmd/pool: add show_archived flag to list command 2020-11-24 11:25:52 +01:00
Wilmer Paulino
3e0fd5309c
order+pool: round default min chan amt to nearest unit 2020-11-11 14:28:23 -08:00
Johan T. Halseth
38e700e355
cli: show active orders only by default 2020-11-02 10:04:45 +01:00
Wilmer Paulino
0c40988d28
pool: add nextbatchinfo auction subcommand 2020-10-30 16:28:03 -07:00
Wilmer Paulino
b87d7f6caf
pool: use correct order amount for min chan amt default value 2020-10-27 15:44:08 -07:00
Oliver Gugger
c7a44d8614
cmd/pool: fix min node tier 2020-10-15 12:21:32 +02:00
Oliver Gugger
1a0d7c4bc8
cmd/pool: show sat/vByte in order summary 2020-10-15 12:21:32 +02:00
Johan T. Halseth
37cedb0118
cmd/pool: allow ratings nodekey without named flag 2020-10-15 09:54:52 +02:00
Wilmer Paulino
fecb1a8398
pool: add min chan amt flag to order submission 2020-10-12 19:51:30 -07:00
Olaoluwa Osuntokun
43c6069e04 cmd/pool/auction: expose new ratings command, fill in ratings info for leases 2020-10-09 15:55:16 -07:00
Olaoluwa Osuntokun
0de4a2f20b cmd/pool: accept min_node_tier when accepting new bids 2020-10-09 15:55:16 -07:00
Olaoluwa Osuntokun
a65dfb9829 order: introduce new node tier system
In this commit, we introduce a new field to only bids (for now): a min
node tier. This node tier is meant to allow buyers to express the level
of "quality" they're interested in for a given purchased channel. This
quality is determined using the current server-side rating system. The
base node tier are those considered "above the cut", this is also the
default tier: t1. The next node tier is t0, and is the buckets all other
nodes fall in. As the tiers rise, the number of nodes in each tier
shrinks, as these are meant to be the upper percentile of all nodes.

NOTE: The way this is implemented is actually a _breaking change_ from
the perspective of orders as we add a new field, which is included in
the order digest, without also bumping the version.
2020-10-07 18:03:47 -07:00
Johan T. Halseth
60f33ca9aa
cmd/pool: add active_only CLI flag 2020-10-07 11:24:29 +02:00
Olaoluwa Osuntokun
281f2a17d2 multi: unify min/max durations into single field of LeaseDuration
In this commit, we replace the existing min/max duration system with a
single field that expresses the expected duration of a lease. Note that
we've left some of the exiting logic in place that select a duration
from a bid in an attempt to make this more of a "soft fork" which will
allow any existing orders to be cleared out as normal before we switch
over.

Once we add multiple durations (this commit assumes a single duration),
we'll need to modify the verification logic to be able to handle
multiple clearing prices for a given batch.
2020-10-05 17:57:16 -07:00
Oliver Gugger
5e90bd7c6f
cmd/pool: add verbose flag to list orders command 2020-10-01 13:16:59 +02:00
Olaoluwa Osuntokun
eb7020a060
multi: add order and clearing rate to leases, show absolute expiry 2020-09-17 17:40:30 -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
294b0341c4
poolcli: output reversed chanpoint 2020-09-17 20:09:17 +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
b100fd3d6a
cmd/pool: add macaroon params to CLI 2020-09-17 08:37:22 +02:00
Wilmer Paulino
acfd41ca55
llm: add auction leases command 2020-09-15 11:57:26 -07:00
Oliver Gugger
9bdfe415a6
cmd/pool: add TLS params to CLI 2020-09-12 09:08:14 +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
1e0035d3d4
multi: fix import order 2020-09-09 19:55:16 -07:00
Olaoluwa Osuntokun
33678c0ee6
cmd: rename llmd and llm to poold and pool 2020-09-09 19:55:07 -07:00
Johan T. Halseth
5fd1e7b7b3
cli: print worst case chain fee and batch fee rate 2020-09-03 15:02:41 +02:00
Oliver Gugger
e6d168e3ee
llm: add tlsCertPath and macaroonPath flags 2020-09-03 09:57:40 +02:00
Oliver Gugger
139be1584d
server+llmd: extract setup code into Run function 2020-09-03 09:57:36 +02:00