Skip to content

Commit

Permalink
fix auto prune opt
Browse files Browse the repository at this point in the history
  • Loading branch information
ZenGround0 committed Aug 5, 2022
1 parent 9c247ca commit 51f8a97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions itests/kit/node_opts.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,10 +278,10 @@ func SplitstoreUniversal() NodeOpt {
})
}

func SplitstoreAutoPrune() CfgOption {
return func(cfg *config.FullNode) error {
func SplitstoreAutoPrune() NodeOpt {
return WithCfgOpt(func(cfg *config.FullNode) error {
cfg.Chainstore.Splitstore.EnableColdStoreAutoPrune = true // turn on
cfg.Chainstore.Splitstore.ColdStoreFullGCFrequency = 0 // turn off full gc
return nil
}
})
}

0 comments on commit 51f8a97

Please sign in to comment.