diff --git a/node/config/def_test.go b/node/config/def_test.go index adbb44b60..0ad0c8f2a 100644 --- a/node/config/def_test.go +++ b/node/config/def_test.go @@ -10,6 +10,8 @@ import ( "github.com/BurntSushi/toml" "github.com/stretchr/testify/require" + + "github.com/filecoin-project/lotus/node/config" ) func TestDefaultFullNodeRoundtrip(t *testing.T) { @@ -71,6 +73,10 @@ func TestDefaultMinerRoundtrip(t *testing.T) { fmt.Println(s) + // Differs between test envs + c.HarmonyDB = config.HarmonyDB{} + c2.(*StorageMiner).HarmonyDB = config.HarmonyDB{} + fmt.Println(c) fmt.Println(c2) require.True(t, reflect.DeepEqual(c, c2)) diff --git a/node/config/types.go b/node/config/types.go index 47f227b91..ac266e089 100644 --- a/node/config/types.go +++ b/node/config/types.go @@ -67,14 +67,18 @@ type StorageMiner struct { } type LotusProviderConfig struct { - EnableWindowPost bool - EnableWinningPost bool + Subsystems ProviderSubsystemsConfig Fees LotusProviderFees Addresses LotusProviderAddresses Proving ProvingConfig } +type ProviderSubsystemsConfig struct { + EnableWindowPost bool + EnableWinningPost bool +} + type DAGStoreConfig struct { // Path to the dagstore root directory. This directory contains three // subdirectories, which can be symlinked to alternative locations if