From 658d7633a3164256383d420aa42be4864c9d138c Mon Sep 17 00:00:00 2001 From: rigelrozanski Date: Tue, 13 Feb 2018 10:28:24 +0000 Subject: [PATCH] cleanup --- examples/basecoin/app/app.go | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/examples/basecoin/app/app.go b/examples/basecoin/app/app.go index 7abc3f5b7d..daba43f898 100644 --- a/examples/basecoin/app/app.go +++ b/examples/basecoin/app/app.go @@ -53,24 +53,8 @@ func NewBasecoinApp(genesisPath string) *BasecoinApp { // TODO: InitChain with validators from genesis transaction bytes - // very first begin block used for context when setting genesis accounts - header := abci.Header{ - ChainID: "", - Height: 0, - Time: -1, - NumTxs: -1, - LastCommitHash: []byte{0x00}, - DataHash: nil, - ValidatorsHash: nil, - AppHash: nil, - } - app.BaseApp.BeginBlock(abci.RequestBeginBlock{ - Hash: nil, - Header: header, - AbsentValidators: nil, - ByzantineValidators: nil, - }) - + // set up the cache store for ctx, get ctx + app.BaseApp.BeginBlock(abci.RequestBeginBlock{Header: abci.Header{}}) ctx := app.BaseApp.NewContext(false, nil) // context for DeliverTx err = app.BaseApp.InitStater(ctx, genesisiDoc.AppState)