add config option for hot headers
This commit is contained in:
parent
50ebaf25aa
commit
649b7dd162
@ -233,6 +233,7 @@ type Splitstore struct {
|
|||||||
HotStoreType string
|
HotStoreType string
|
||||||
TrackingStoreType string
|
TrackingStoreType string
|
||||||
MarkSetType string
|
MarkSetType string
|
||||||
|
HotHeaders bool
|
||||||
}
|
}
|
||||||
|
|
||||||
// // Full Node
|
// // Full Node
|
||||||
|
@ -80,7 +80,7 @@ func SplitBlockstore(cfg *config.Chainstore) func(lc fx.Lifecycle, r repo.Locked
|
|||||||
cfg := &splitstore.Config{
|
cfg := &splitstore.Config{
|
||||||
TrackingStoreType: cfg.Splitstore.TrackingStoreType,
|
TrackingStoreType: cfg.Splitstore.TrackingStoreType,
|
||||||
MarkSetType: cfg.Splitstore.MarkSetType,
|
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)
|
ss, err := splitstore.Open(path, ds, hot, cold, cfg)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user