[state] expose ChainID and Params

```
jaekwon
Yeah we should definitely expose ChainID.
ConsensusParams is small enough, we can just write it.
```
https://github.com/tendermint/tendermint/pull/676#discussion_r144123203
This commit is contained in:
Anton Kaliaev
2017-10-12 14:50:09 +04:00
parent 1971e149fb
commit 716364182d
10 changed files with 40 additions and 92 deletions

View File

@ -145,9 +145,6 @@ func NewNode(config *cfg.Config,
return nil, err
}
state.Save()
} else {
state.SetChainID(genDoc.ChainID)
state.SetParams(genDoc.ConsensusParams)
}
state.SetLogger(stateLogger)
@ -163,8 +160,6 @@ func NewNode(config *cfg.Config,
// reload the state (it may have been updated by the handshake)
state = sm.LoadState(stateDB)
state.SetChainID(genDoc.ChainID)
state.SetParams(genDoc.ConsensusParams)
state.SetLogger(stateLogger)
// Transaction indexing