Commit graph

483 commits

Author SHA1 Message Date
Olaoluwa Osuntokun
56dd3cf282
Merge pull request #113 from Roasbeef/paper-draft
docs/paper: initial draft of whitepaper
2020-10-22 13:27:30 -07:00
Olaoluwa Osuntokun
b2a5e13891 docs/paper: initial draft of whitepaper 2020-10-22 13:26:18 -07:00
Olaoluwa Osuntokun
a2ff28e94f build: bump version to v0.2.9-alpha 2020-10-20 17:09:32 -07:00
Olaoluwa Osuntokun
c63fc914f2
Merge pull request #110 from wpaulino/prevent-unsigned-broadcast
account: avoid broadcast of unsigned transactions
2020-10-20 17:08:36 -07:00
Olaoluwa Osuntokun
1b128eb37b
Merge pull request #108 from guggero/docs-oli
Add docs for installation process and orders, fix small issues in CLI found in the process
2020-10-20 17:07:39 -07:00
Olaoluwa Osuntokun
2ff77e7cc4
Merge pull request #111 from halseth/batch-step-timeout-15s
funding: increase batch step timeout 8s->15s
2020-10-20 17:07:09 -07:00
Johan T. Halseth
64318bd16d
funding: increase batch step timeout 8s->15s 2020-10-20 19:40:46 +02:00
Johan T. Halseth
32a6d1a186
Merge pull request #109 from halseth/gitbook-batch-execution
[docs] docs on batch execution
2020-10-20 19:03:51 +02:00
Johan T. Halseth
932399a451
docs/batch_execution: add section on fees 2020-10-20 11:06:06 +02:00
Johan T. Halseth
9f0f5c0332
docs/batch_execution: add sections on matchmaking, batch signing,
publication
2020-10-20 11:06:06 +02:00
Johan T. Halseth
4d48c44e0f
docs/batch_execution: update with new values, 2016 lease duration
Also state the the historical clearing price puts you close to the
demand in the market,as it is not really market buying.
2020-10-20 11:06:06 +02:00
Johan T. Halseth
94006545ce
docs/batch_execution: reflow doc 2020-10-20 11:06:06 +02:00
Wilmer Paulino
385794bde6
account: avoid broadcast of unsigned transactions
In some cases, like when an account is closed due to participating in a
batch, the latest transaction stored for the account is unsigned, which
can be rebroadcast upon a restart. This broadcast attempt will always
fail, so instead we opt to not rebroadcast it at all.
2020-10-19 12:39:31 -07:00
Lightning Labs
52b0665b9f
GitBook: [master] one page modified 2020-10-16 21:47:33 +00:00
Oliver Gugger
ff59d3705f
docs: complete order section 2020-10-15 14:20:59 +02: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
Oliver Gugger
c8ed13bc4d
docs: write installation part 2020-10-15 12:21:32 +02:00
Oliver Gugger
51de12d895
docs/faq: add categories, add question 2020-10-15 12:21:31 +02:00
Oliver Gugger
8ae8ab4fee
docs: rename long file name created by GitBook 2020-10-15 12:21:31 +02:00
Oliver Gugger
90a74b34ff
Merge pull request #107 from halseth/node-key-cli-arg
cmd/pool: allow ratings nodekey without named flag
2020-10-15 10:36:41 +02:00
Johan T. Halseth
37cedb0118
cmd/pool: allow ratings nodekey without named flag 2020-10-15 09:54:52 +02:00
Olaoluwa Osuntokun
99c9405d77 build: bump version to v0.2.8-alpha 2020-10-14 11:21:37 -07:00
Justin O'Brien
0d64ec67a4
GitBook: [master] 11 pages modified 2020-10-14 10:52:41 +00:00
Olaoluwa Osuntokun
cf7020cdf7
Merge pull request #105 from lightninglabs/gitbook-docs
docs: re-organize docs into new Gitbook compatible structure
2020-10-13 17:43:06 -07:00
Olaoluwa Osuntokun
d1a5c35949 docs: re-organize docs into new Gitbook compatible structure 2020-10-13 17:02:46 -07:00
Olaoluwa Osuntokun
7744d9d4bf
Merge pull request #104 from guggero/del-order-timestamp
Update order status to "failed" instead of deleting
2020-10-13 16:21:41 -07:00
Olaoluwa Osuntokun
caa2272692
Merge pull request #100 from wpaulino/order-min-match
order+rpc: introduce MinUnitsMatch field
2020-10-13 16:11:41 -07:00
Oliver Gugger
b0dc59a39e
order+clientdb: remove unused DelOrder method 2020-10-13 10:11:37 +02:00
Oliver Gugger
27903f77c4
rpcserver: update order status on failure
Instead of deleting the partial order (which had a bug in it that it
didn't remove the order creation timestamp) we for now only update its
status to failed. We'll want to implement proper housekeeping at one
point to get rid of archived orders. But for now we have the
--active_only flag that helps to easily filter out archived orders on
the command line.
2020-10-13 10:09:43 +02:00
Wilmer Paulino
bd39dfc78f
order: mark order with unfulfilled units below min as executed 2020-10-12 19:51:32 -07:00
Wilmer Paulino
3c92676aec
order: use min units match to compute reserved value 2020-10-12 19:51:31 -07:00
Wilmer Paulino
fecb1a8398
pool: add min chan amt flag to order submission 2020-10-12 19:51:30 -07:00
Wilmer Paulino
e9031a4885
order: enforce min units match in batch verification 2020-10-12 19:51:29 -07:00
Wilmer Paulino
664a55ad3b
clientdb: store order MinUnitsMatch field 2020-10-12 19:51:28 -07:00
Wilmer Paulino
f45245e8fc
order+rpc: introduce MinUnitsMatch field 2020-10-12 19:51:27 -07:00
Olaoluwa Osuntokun
c5fe0d7c52 version: bump version to v0.2.7-alpha 2020-10-12 17:14:53 -07:00
Olaoluwa Osuntokun
0f42edccae
Merge pull request #89 from Roasbeef/bid-node-tiers
multi: add new node tier system for bids, a ratings endpoint for querying, and expose node+tier info in leases
2020-10-09 16:02:40 -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
479090f7d3 rpc: add node pubkey and ratings information to the leases response 2020-10-09 15:55:16 -07:00
Olaoluwa Osuntokun
032649b183 rpc+auctioneer: implement new NodeRatings end point 2020-10-09 15:55:16 -07:00
Olaoluwa Osuntokun
618fe0ad53 auctioneer+rpc: thread through new MinNodeTier for order submission/listing 2020-10-09 15:53:43 -07:00
Olaoluwa Osuntokun
4b41c323c7 poolrpc: add new calls for Bid node rating system, and node rating queries 2020-10-09 15:53:43 -07:00
Olaoluwa Osuntokun
273fb46088 clientdb: add new key within order bucket for min node tier
In this commit, we add a new key within the order bucket that stores
just the node tier for a given order. The current code only _expects_ a
node tier to exist for Bid orders, however things have been designed
such that, we can easily add tier options for Ask orders as well.

Along the way we modify the `orderCallback` to include the node tier
information as its read from a distinct bucket. In the future, we'll
likely want to make this into a struct so the function signature doesn't
ever expand.
2020-10-09 15:53:43 -07:00
Wilmer Paulino
a9807ab0fd
Merge pull request #103 from guggero/proper-shutdown
rpcserver: request proper shutdown on terminal error
2020-10-09 12:38:50 -07:00
Oliver Gugger
1af2e1c209
rpcserver: request proper shutdown on terminal error
When a terminal error is received, it is not enough to stop the server
itself to terminate the trader daemon because the main goroutine still
blocks on the read from the shutdown channel.
Instead we have to request a proper shutdown through the signal package
to initiate a full trader daemon stop.
2020-10-09 13:31:25 +02: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
fdbbb7425f
Merge pull request #101 from halseth/orders-active-only
`active_only` option when listing orders
2020-10-07 13:24:52 +02:00
Johan T. Halseth
60f33ca9aa
cmd/pool: add active_only CLI flag 2020-10-07 11:24:29 +02:00