Skip to content

Commit e631a03

Browse files
authored
Merge pull request #1297 from lightninglabs/multiverse-cache-set
tapcfg: read multiverse cache from cfg instead of using default
2 parents 6f79a36 + 963dd2c commit e631a03

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tapcfg/server.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"fmt"
99

1010
"github.com/btcsuite/btclog"
11+
"github.com/davecgh/go-spew/spew"
1112
"github.com/lightninglabs/lndclient"
1213
tap "github.com/lightninglabs/taproot-assets"
1314
"github.com/lightninglabs/taproot-assets/address"
@@ -126,8 +127,14 @@ func genServerConfig(cfg *Config, cfgLogger btclog.Logger,
126127
return db.WithTx(tx)
127128
},
128129
)
130+
131+
cfgLogger.Debugf("multiverse_cache=%v",
132+
spew.Sdump(cfg.Universe.MultiverseCaches))
133+
129134
multiverse := tapdb.NewMultiverseStore(
130-
multiverseDB, tapdb.DefaultMultiverseStoreConfig(),
135+
multiverseDB, &tapdb.MultiverseStoreConfig{
136+
Caches: *cfg.Universe.MultiverseCaches,
137+
},
131138
)
132139

133140
uniStatsDB := tapdb.NewTransactionExecutor(

0 commit comments

Comments
 (0)