Commit graph

27 commits

Author SHA1 Message Date
positiveblue
d1b9a63da5
order: add auction type field to order struct/db 2022-10-18 06:44:01 -07:00
positiveblue
05ff9e2635
order: add IsPublic field 2022-10-18 04:34:22 -07:00
positiveblue
241f295957
order: add channel announcement and zero conf constraint fields
Includes the definition of matchable orders based on the new constraint
fields.
2022-10-18 04:34:20 -07:00
positiveblue
355be1556c
clientdb: add node filter lists to order tlv data 2022-04-22 00:26:38 -07:00
positiveblue
c6fe105367
order: add DeleteOrder to store interface 2022-04-13 13:44:10 -07:00
positiveblue
6027ccd3d6
multi: bump btcec/v2 and btcutil to new versions 2022-03-28 15:22:41 +02:00
Wilmer Paulino
2adf6939c3
clientdb: store new channel type field as part of tlv stream 2021-11-02 16:47:50 -07:00
Oliver Gugger
429b28b110
multi: prepare for upcoming lnd v0.14.0-beta release 2021-10-20 19:25:54 -07:00
Oliver Gugger
2f56378898
order+clientdb: add sidecar ticket to bid order
With this commit we add the optional sidecar ticket to bid orders.
Because the node submitting the bid order doesn't necessarily need to be
the node creating the offer, we just store the ticket as is and don't
require it to be in the database already.
2021-04-02 14:18:10 +02:00
Oliver Gugger
b308f2ee35
clientdb: add self channel balance to bid order
With the additional data encoded as tlv, we can simply add the new
self channel balance field to the tlv stream.
2021-03-19 16:50:31 +01:00
Oliver Gugger
8f817aba5f
clientdb: add extra data as tlv stream to order
To make it way easier to add more data to orders, we add an extra key
in the order's bucket that will contain all future additional data
encoded as a tlv stream.
The PR containing this commit will likely become quite large as is and
therefore we don't want to overload it more by also adding a DB
migration. This can always be done in the future.
2021-03-19 16:50:30 +01: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
Oliver Gugger
b0dc59a39e
order+clientdb: remove unused DelOrder method 2020-10-13 10:11:37 +02:00
Wilmer Paulino
664a55ad3b
clientdb: store order MinUnitsMatch field 2020-10-12 19:51:28 -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
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
c147e8c96f
clientdb: store and retrieve order events
We create new store methods to store and retrieve order events. We also
emit and store the "created" and "state changed" events when appropriate.
2020-10-01 13:16:52 +02:00
Oliver Gugger
24dc11625b
clientdb: create and use copyOrder for applying batch updates
To make sure the source bucket in updateOrder always is the root order
bucket, we extract the single case were it didn't use to be that way
into its own function called copyOrder and use that for applying the
final batch updates.
2020-10-01 13:16:51 +02:00
Johan T. Halseth
169daf8131
clientdb: return updated order, account on modification 2020-09-10 09:51:57 +02:00
Olaoluwa Osuntokun
ffc9c60b13
multi: rename project from llm to pool 2020-09-09 19:55:10 -07:00
Johan T. Halseth
a2abc187f3
multi: rename FundingFeeRate to MaxBatchFeeRate
The funding feerate field was previoulsy unused, so we rename it to
"max batch fee rate" in order to use it to communicate to the server the
maximum fee rate we are willing to pay to be included in a batch.

We also increase the default value to 500 sat/vbyte.
2020-08-07 16:34:07 +02:00
Oliver Gugger
97624499a9
mod: update bbolt to fix go1.14 compat 2020-06-24 10:53:59 +02:00
Oliver Gugger
b120e5b21c
clientdb: fix order deletion 2020-06-23 15:38:53 +02:00
Olaoluwa Osuntokun
57fa63c237
multi: rename, fix modules 2020-06-21 19:37:00 -07:00
Wilmer Paulino
210415b8b2 clientdb: specify src and dst buckets for updateOrderTX 2020-04-27 15:48:42 -07:00
Oliver Gugger
790f05b851 clientdb: allow multiple order updates in same TX
With this commit we prepare the client order database to allow
multiple manipulations to occur in a single database transaction.
2020-03-12 15:18:19 +01:00
Oliver Gugger
d59b603e45 client+order: store order 2020-01-17 17:41:25 +01:00