test fix, review rearrange
This commit is contained in:
parent
2f36f0ec0a
commit
c99fa24ef4
@ -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))
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user