update for tendermint 0.11

This commit is contained in:
Ethan Buchman
2017-10-02 14:40:42 -04:00
parent 0307321051
commit 1f151d1232
6 changed files with 21 additions and 14 deletions
+1 -1
View File
@@ -148,7 +148,7 @@ func GetGenesisJSON(chainID, addr string, options string) string {
"genesis_time": "0001-01-01T00:00:00.000Z",
"validators": [
{
"amount": 10,
"power": 10,
"name": "",
"pub_key": {
"type": "ed25519",
+9 -2
View File
@@ -118,8 +118,15 @@ func startTendermint(dir string, basecoinApp *app.Basecoin) error {
}
// Create & start tendermint node
privValidator := types.LoadOrGenPrivValidator(cfg.PrivValidatorFile(), logger)
n := node.NewNode(cfg, privValidator, proxy.NewLocalClientCreator(basecoinApp), logger.With("module", "node"))
n, err := node.NewNode(cfg,
types.LoadOrGenPrivValidatorFS(cfg.PrivValidatorFile()),
proxy.NewLocalClientCreator(basecoinApp),
node.DefaultGenesisDocProviderFunc(cfg),
node.DefaultDBProvider,
logger.With("module", "node"))
if err != nil {
return err
}
_, err = n.Start()
if err != nil {