test fix, review rearrange

This commit is contained in:
Andrew Jackson (Ajax) 2023-09-22 17:53:06 -05:00
parent 2f36f0ec0a
commit c99fa24ef4
2 changed files with 12 additions and 2 deletions

View File

@ -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))

View File

@ -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