lp config: make default cmd not panic
This commit is contained in:
parent
e442bf156a
commit
24fcde40a4
@ -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",
|
||||
},
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user