Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: migration config bug #1596

Merged
merged 1 commit into from
Jul 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 7 additions & 12 deletions cmd/boostd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -482,24 +482,19 @@ func migrateMarketsConfig(cctx *cli.Context, mktsRepo lotus_repo.LockedRepo, boo
}
rcfg.Common.Backup = mktsCfg.Common.Backup
rcfg.Common.Libp2p = mktsCfg.Common.Libp2p
rcfg.Storage = config.StorageConfig{ParallelFetchLimit: mktsCfg.Storage.ParallelFetchLimit}
rcfg.Storage.ParallelFetchLimit = mktsCfg.Storage.ParallelFetchLimit
setBoostDealMakingCfg(&rcfg.Dealmaking, mktsCfg)
rcfg.LotusDealmaking = mktsCfg.Dealmaking
rcfg.LotusFees = config.FeeConfig{
MaxPublishDealsFee: mktsCfg.Fees.MaxPublishDealsFee,
MaxMarketBalanceAddFee: mktsCfg.Fees.MaxMarketBalanceAddFee,
}
rcfg.LotusFees.MaxMarketBalanceAddFee = mktsCfg.Fees.MaxMarketBalanceAddFee
rcfg.LotusFees.MaxPublishDealsFee = mktsCfg.Fees.MaxPublishDealsFee
rcfg.DAGStore = mktsCfg.DAGStore
// Clear the DAG store root dir config, because the DAG store is no longer configurable in Boost
// (it is always at <repo path>/dagstore
rcfg.DAGStore.RootDir = ""
rcfg.IndexProvider = config.IndexProviderConfig{
Enable: mktsCfg.IndexProvider.Enable,
EntriesCacheCapacity: mktsCfg.IndexProvider.EntriesCacheCapacity,
EntriesChunkSize: mktsCfg.IndexProvider.EntriesChunkSize,
TopicName: mktsCfg.IndexProvider.TopicName,
PurgeCacheOnStart: mktsCfg.IndexProvider.PurgeCacheOnStart,
}
rcfg.IndexProvider.EntriesCacheCapacity = mktsCfg.IndexProvider.EntriesCacheCapacity
rcfg.IndexProvider.EntriesChunkSize = mktsCfg.IndexProvider.EntriesChunkSize
rcfg.IndexProvider.TopicName = mktsCfg.IndexProvider.TopicName
rcfg.IndexProvider.PurgeCacheOnStart = mktsCfg.IndexProvider.PurgeCacheOnStart
rcfg.IndexProvider.Enable = true // Enable index provider in Boost by default

if fromMonolith {
Expand Down