pool/clientdb
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
..
migrations clientdb: add migration for existing orders 2020-10-01 13:16:50 +02:00
account.go clientdb: return updated order, account on modification 2020-09-10 09:51:57 +02:00
account_test.go clientdb: define LocalBatchSnapshot 2020-09-10 10:41:07 +02:00
batch.go clientdb: create and use copyOrder for applying batch updates 2020-10-01 13:16:51 +02:00
batch_snapshot.go clientdb: add batch ID index bucket for snapshots 2020-09-10 10:41:31 +02:00
batch_snapshot_test.go multi: unify min/max durations into single field of LeaseDuration 2020-10-05 17:57:16 -07:00
batch_test.go multi: unify min/max durations into single field of LeaseDuration 2020-10-05 17:57:16 -07:00
codec.go order+clientdb: add order specific events 2020-10-01 13:16:47 +02:00
codec_test.go multi: rename project from llm to pool 2020-09-09 19:55:10 -07:00
db.go clientdb: add migration for existing orders 2020-10-01 13:16:50 +02:00
event.go clientdb: add event storage 2020-10-01 13:16:48 +02:00
event_test.go multi: unify min/max durations into single field of LeaseDuration 2020-10-05 17:57:16 -07:00
log.go multi: add persistent bolt storage 2019-12-11 18:59:58 -08:00
metadata.go clientdb: add migration for existing orders 2020-10-01 13:16:50 +02:00
order.go multi: unify min/max durations into single field of LeaseDuration 2020-10-05 17:57:16 -07:00
order_event.go rpcserver+clientdb: store match events for rejects 2020-10-01 13:16:58 +02:00
order_test.go multi: unify min/max durations into single field of LeaseDuration 2020-10-05 17:57:16 -07:00