From c99fa24ef439621316fc657245ed9adea92f7f60 Mon Sep 17 00:00:00 2001 From: "Andrew Jackson (Ajax)" Date: Fri, 22 Sep 2023 17:53:06 -0500 Subject: [PATCH] test fix, review rearrange --- node/config/def_test.go | 6 ++++++ node/config/types.go | 8 ++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) 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