move DealmakingConfiger and SealingConfiger away from config/types.go
This commit is contained in:
parent
62e352ef88
commit
5734a39e8e
@ -340,14 +340,6 @@ see https://docs.filecoin.io/mine/lotus/miner-configuration/#using-filters-for-f
|
|||||||
Comment: ``,
|
Comment: ``,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"DealmakingConfiger interface": []DocField{
|
|
||||||
{
|
|
||||||
Name: "GetDealmakingConfig()",
|
|
||||||
Type: "DealmakingConfig",
|
|
||||||
|
|
||||||
Comment: ``,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"FeeConfig": []DocField{
|
"FeeConfig": []DocField{
|
||||||
{
|
{
|
||||||
Name: "DefaultMaxFee",
|
Name: "DefaultMaxFee",
|
||||||
@ -806,14 +798,6 @@ submitting proofs to the chain individually`,
|
|||||||
Comment: ``,
|
Comment: ``,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"SealingConfiger interface": []DocField{
|
|
||||||
{
|
|
||||||
Name: "GetSealingConfig()",
|
|
||||||
Type: "SealingConfig",
|
|
||||||
|
|
||||||
Comment: ``,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"Splitstore": []DocField{
|
"Splitstore": []DocField{
|
||||||
{
|
{
|
||||||
Name: "ColdStoreType",
|
Name: "ColdStoreType",
|
||||||
|
27
node/config/dynamic_config.go
Normal file
27
node/config/dynamic_config.go
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
package config
|
||||||
|
|
||||||
|
type DealmakingConfiger interface {
|
||||||
|
GetDealmakingConfig() DealmakingConfig
|
||||||
|
SetDealmakingConfig(DealmakingConfig)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *StorageMiner) GetDealmakingConfig() DealmakingConfig {
|
||||||
|
return c.Dealmaking
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *StorageMiner) SetDealmakingConfig(other DealmakingConfig) {
|
||||||
|
c.Dealmaking = other
|
||||||
|
}
|
||||||
|
|
||||||
|
type SealingConfiger interface {
|
||||||
|
GetSealingConfig() SealingConfig
|
||||||
|
SetSealingConfig(SealingConfig)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *StorageMiner) GetSealingConfig() SealingConfig {
|
||||||
|
return c.Sealing
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *StorageMiner) SetSealingConfig(other SealingConfig) {
|
||||||
|
c.Sealing = other
|
||||||
|
}
|
@ -52,32 +52,6 @@ type StorageMiner struct {
|
|||||||
DAGStore DAGStoreConfig
|
DAGStore DAGStoreConfig
|
||||||
}
|
}
|
||||||
|
|
||||||
type DealmakingConfiger interface {
|
|
||||||
GetDealmakingConfig() DealmakingConfig
|
|
||||||
SetDealmakingConfig(DealmakingConfig)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (c *StorageMiner) GetDealmakingConfig() DealmakingConfig {
|
|
||||||
return c.Dealmaking
|
|
||||||
}
|
|
||||||
|
|
||||||
func (c *StorageMiner) SetDealmakingConfig(other DealmakingConfig) {
|
|
||||||
c.Dealmaking = other
|
|
||||||
}
|
|
||||||
|
|
||||||
type SealingConfiger interface {
|
|
||||||
GetSealingConfig() SealingConfig
|
|
||||||
SetSealingConfig(SealingConfig)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (c *StorageMiner) GetSealingConfig() SealingConfig {
|
|
||||||
return c.Sealing
|
|
||||||
}
|
|
||||||
|
|
||||||
func (c *StorageMiner) SetSealingConfig(other SealingConfig) {
|
|
||||||
c.Sealing = other
|
|
||||||
}
|
|
||||||
|
|
||||||
type DAGStoreConfig struct {
|
type DAGStoreConfig struct {
|
||||||
// Path to the dagstore root directory. This directory contains three
|
// Path to the dagstore root directory. This directory contains three
|
||||||
// subdirectories, which can be symlinked to alternative locations if
|
// subdirectories, which can be symlinked to alternative locations if
|
||||||
|
Loading…
Reference in New Issue
Block a user