multi: split database storage into remote and local instances

In this commit, we split the database storage into two classes: remote
and local data. If etcd isn't active, then everything is actually just
local though we use two pointers everywhere. If etcd is active, then
everything but the graph goes into the remote database.
This commit is contained in:
Olaoluwa Osuntokun committed 2020-08-07 18:44:02 -07:00
1 parent 7355c8ba3a
commit f58b00ef55
8 files changed
+240 -123

No files matched your search

+2
View File
@@ -126,6 +126,8 @@ var (
// estimatesmartfee RPC call.
defaultBitcoindEstimateMode = "CONSERVATIVE"
bitcoindEstimateModes = [2]string{"ECONOMICAL", defaultBitcoindEstimateMode}
defaultSphinxDbName = "sphinxreplay.db"
)
// Config defines the configuration options for lnd.