Commit graph

12 commits

Author SHA1 Message Date
positiveblue
a66a63e895
fmt: run go fmt
Since v1.19.0 `go fmt` also formats comments. This commit is only to
ensure that `go fmt ./...` does not modify any of our commited files.
2023-01-06 01:53:15 -08:00
Oliver Gugger
7bc48a7a7d
account+clientdb: add version to account 2022-09-12 17:20:10 +02:00
Oliver Gugger
986d889b74
multi: fix linter issues 2022-08-03 20:33:06 +02:00
Oliver Gugger
429b28b110
multi: prepare for upcoming lnd v0.14.0-beta release 2021-10-20 19:25:54 -07: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
05626355ae
multi: use distinct clearing price per duration bucket 2021-01-08 14:02:14 +01:00
Oliver Gugger
713eba5279
clientdb: properly serialize batch version
Even though there still only is one batch version, we want to properly
encode/decode it as a preparation for future version changes.
2021-01-08 14:02:08 +01:00
Oliver Gugger
4b2291aaa8
clientdb: add fetchPendingBatchSnapshot
In preparation for loading the full local pending batch snapshot instead
of only the ID when starting the daemon, we add a new function to the
database to retrieve the snapshot.
2020-12-09 09:42:29 +01: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
Johan T. Halseth
60d7a0a48b
clientdb: add batch ID index bucket for snapshots 2020-09-10 10:41:31 +02:00
Johan T. Halseth
7c3a4d8492
clientdb: define LocalBatchSnapshot 2020-09-10 10:41:07 +02:00