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

@@ -52,7 +52,7 @@ func WALWithNBlocks(numBlocks int) (data []byte, err error) {
return nil, errors.Wrap(err, "failed to make genesis state")
}
blockStore := bc.NewBlockStore(blockStoreDB)
handshaker := NewHandshaker(stateDB, state, blockStore)
handshaker := NewHandshaker(stateDB, state, blockStore, genDoc.AppState)
proxyApp := proxy.NewAppConns(proxy.NewLocalClientCreator(app), handshaker)
proxyApp.SetLogger(logger.With("module", "proxy"))
if err := proxyApp.Start(); err != nil {