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{ return &LotusProviderConfig{
Subsystems: ProviderSubsystemsConfig{},
Fees: LotusProviderFees{ Fees: LotusProviderFees{
DefaultMaxFee: DefaultDefaultMaxFee, DefaultMaxFee: DefaultDefaultMaxFee,
MaxPreCommitGasFee: types.MustParseFIL("0.025"), MaxPreCommitGasFee: types.MustParseFIL("0.025"),
@ -379,14 +380,5 @@ func DefaultLotusProvider() *LotusProviderConfig {
PartitionCheckTimeout: Duration(20 * time.Minute), PartitionCheckTimeout: Duration(20 * time.Minute),
SingleCheckTimeout: Duration(10 * 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 { type LotusProviderConfig struct {
Subsystems ProviderSubsystemsConfig Subsystems ProviderSubsystemsConfig
Fees LotusProviderFees Fees LotusProviderFees
Addresses LotusProviderAddresses Addresses LotusProviderAddresses
Proving ProvingConfig Proving ProvingConfig
SealingParams SealingConfig // TODO defaults Journal JournalConfig
SealerConfig // TODO defaults Apis ApisConfig
Journal JournalConfig
Apis ApisConfig
} }
type ApisConfig struct { type ApisConfig struct {