Add app_state from genesis file in InitChain message

This commit is contained in:
Ethan Frey
2018-02-21 19:36:57 +01:00
committed by Ethan Buchman
parent 59872bf335
commit fff0c6cd8e
5 changed files with 29 additions and 10 deletions

View File

@ -162,7 +162,7 @@ func NewNode(config *cfg.Config,
// and sync tendermint and the app by performing a handshake
// and replaying any necessary blocks
consensusLogger := logger.With("module", "consensus")
handshaker := cs.NewHandshaker(stateDB, state, blockStore)
handshaker := cs.NewHandshaker(stateDB, state, blockStore, genDoc.AppState)
handshaker.SetLogger(consensusLogger)
proxyApp := proxy.NewAppConns(clientCreator, handshaker)
proxyApp.SetLogger(logger.With("module", "proxy"))