This commit is contained in:
rigelrozanski 2018-02-13 10:28:24 +00:00
parent ed662566eb
commit 658d7633a3
1 changed files with 2 additions and 18 deletions

View File

@ -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)