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{
|
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",
|
|
||||||
},
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user