add config option for hot headers

This commit is contained in:
vyzo
2021-07-04 18:38:28 +03:00
parent 50ebaf25aa
commit 649b7dd162
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -233,6 +233,7 @@ type Splitstore struct {
HotStoreType string
TrackingStoreType string
MarkSetType string
HotHeaders bool
}
// // Full Node
+1 -1
View File
@@ -80,7 +80,7 @@ func SplitBlockstore(cfg *config.Chainstore) func(lc fx.Lifecycle, r repo.Locked
cfg := &splitstore.Config{
TrackingStoreType: cfg.Splitstore.TrackingStoreType,
MarkSetType: cfg.Splitstore.MarkSetType,
HotHeaders: cfg.Splitstore.ColdStoreType == "noop",
HotHeaders: cfg.Splitstore.HotHeaders || cfg.Splitstore.ColdStoreType == "noop",
}
ss, err := splitstore.Open(path, ds, hot, cold, cfg)
if err != nil {