add config option for hot headers

This commit is contained in:
vyzo 2021-06-23 21:21:56 +03:00
parent 50ebaf25aa
commit 649b7dd162
2 changed files with 2 additions and 1 deletions

View File

@ -233,6 +233,7 @@ type Splitstore struct {
HotStoreType string
TrackingStoreType string
MarkSetType string
HotHeaders bool
}
// // Full Node

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 {