lp config: make default cmd not panic

This commit is contained in:
Łukasz Magiera 2023-10-30 17:19:07 +01:00
parent e442bf156a
commit 24fcde40a4
2 changed files with 6 additions and 16 deletions

View File

@ -351,6 +351,7 @@ func DefaultLotusProvider() *LotusProviderConfig {
}
*/
return &LotusProviderConfig{
Subsystems: ProviderSubsystemsConfig{},
Fees: LotusProviderFees{
DefaultMaxFee: DefaultDefaultMaxFee,
MaxPreCommitGasFee: types.MustParseFIL("0.025"),
@ -379,14 +380,5 @@ func DefaultLotusProvider() *LotusProviderConfig {
PartitionCheckTimeout: Duration(20 * time.Minute),
SingleCheckTimeout: Duration(10 * time.Minute),
},
/*
HarmonyDB: HarmonyDB{
Hosts: []string{"127.0.0.1"},
Username: "yugabyte",
Password: "yugabyte",
Database: "yugabyte",
Port: "5433",
},
*/
}
}

View File

@ -69,13 +69,11 @@ type StorageMiner struct {
type LotusProviderConfig struct {
Subsystems ProviderSubsystemsConfig
Fees LotusProviderFees
Addresses LotusProviderAddresses
Proving ProvingConfig
SealingParams SealingConfig // TODO defaults
SealerConfig // TODO defaults
Journal JournalConfig
Apis ApisConfig
Fees LotusProviderFees
Addresses LotusProviderAddresses
Proving ProvingConfig
Journal JournalConfig
Apis ApisConfig
}
type ApisConfig struct {