simplify config handling

This commit is contained in:
Callum Waters
2022-06-15 12:38:20 +02:00
parent f0b0f34f3f
commit 27d139cdb9
32 changed files with 321 additions and 761 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ import (
)
const (
DefaultTestChainID = "test-chain"
DefaultTestChainID = "test_chain"
)
var (
+2 -3
View File
@@ -3,12 +3,11 @@ package factory
import (
"time"
cfg "github.com/tendermint/tendermint/config"
"github.com/tendermint/tendermint/types"
)
func GenesisDoc(
config *cfg.Config,
chainID string,
time time.Time,
validators []*types.Validator,
consensusParams *types.ConsensusParams,
@@ -26,7 +25,7 @@ func GenesisDoc(
return &types.GenesisDoc{
GenesisTime: time,
InitialHeight: 1,
ChainID: config.ChainID(),
ChainID: chainID,
Validators: genesisValidators,
ConsensusParams: consensusParams,
}