Commit graph

112 commits

Author SHA1 Message Date
positiveblue
6027ccd3d6
multi: bump btcec/v2 and btcutil to new versions 2022-03-28 15:22:41 +02:00
positiveblue
51a64e8fc1 cmd: improve InitAccount cli message
Our message was really confusing. If InitAccount was used with
the `sat_per_vbyte` option we were printing the default `conf_target`
that was not used at all.
2022-03-02 13:36:30 -08:00
positiveblue
7b0ddfe6cc
cmd/account: add flags to recovery process 2022-01-27 23:37:29 -08:00
positiveblue
c8a1aa9311
cmd/pool: user server assisted recovery by default 2022-01-26 01:17:30 -08:00
Olaoluwa Osuntokun
67fb1b4b97
cmd/pool: stop setting a default channel type on the CLI
In this commit, we move to stop setting a default channel type on the
CLI. Instead, we want this to be selected at runtime by the daemon based
on what the lnd node can offer.
2021-12-17 18:02:40 -08:00
Oliver Gugger
94c67dd54d
Merge pull request #319 from guggero/pool-cli-conflict
Fix pool CLI short name conflict
2021-12-01 15:20:38 +01:00
Oliver Gugger
2803a5f93c
cmd/pool: fix colliding cmd short name
Fixes #318.
Short names must be unique. This commit renames the short command name
"r" for "pool accounts recover" to "re" to not conflict with "renew".
2021-12-01 15:18:09 +01:00
Oliver Gugger
7f2f481810
Merge pull request #305 from lightninglabs/auto-renew
multi: extend account expiry after using it
2021-11-29 16:03:21 +01:00
Oliver Gugger
dc4ef7e981
cmd/pool: fix incorrect godoc 2021-11-29 11:08:40 +01:00
positiveblue
f94c9c284c
cmd/pool: add flags for exipry updates during Deposits/Withdraws 2021-11-09 17:48:52 -08:00
Wilmer Paulino
644f3e1eef
pool: add channel type flag for order submission 2021-11-02 16:48:08 -07:00
Oliver Gugger
856e09e80d
cmd/pool: make min_chan_amt mandatory in auto mode
To avoid running into an error during automatic bid order submission
when offering a sidecar channel, we need to make the --min_chan_amt flag
of the order mandatory.
2021-10-29 17:20:18 +02:00
Oliver Gugger
429b28b110
multi: prepare for upcoming lnd v0.14.0-beta release 2021-10-20 19:25:54 -07:00
positiveblue
c90f15878d cmd/pool: add sats_per_vbyte to account new 2021-10-01 09:54:26 -07:00
Oliver Gugger
3f8f556a44
cmd/pool: add sidecar list and cancel commands 2021-09-29 15:41:35 +02:00
Oliver Gugger
7b2d457dd3
multi: update ticket state after submitting order
When manually submitting an order, we want to update the state of the
ticket in the main database to the same state that we update the ticket
that's stored within the orders's TLV data.
2021-09-29 15:41:34 +02:00
Oliver Gugger
3d015ec18d
cmd/pool: use DecodeSidecarTicket RPC for printticket 2021-09-22 17:00:43 +02:00
Olaoluwa Osuntokun
d0094acbb2
Merge pull request #269 from orbitalturtle/sidecar-offer-account
cmd/pool: make sure to retrieve trader key when using sidecarOffer command
2021-06-30 14:42:53 -07:00
Turtle
8f51833c46 cmd/pool: make sure to retrieve trader key when using sidecarOffer command 2021-06-27 06:52:17 +01:00
carla
b39f6716fe
multi: add matched order nonce to lease
Update leases to include the nonce of the order that the match was
with. This is required to match a lease with the event list provided
by an order in the case of multiple matches (and thus get a timestamp
for that lease).
2021-06-22 09:17:13 +02:00
Oliver Gugger
f38eeaf933
multi: bump lnd to version v0.13.0-beta.rc3 2021-05-25 20:25:16 +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