Commit 307d7503 authored by catShaark's avatar catShaark
Browse files

use BeginBlocker and EndBlocker in apptesting

parent 805f80ce
Showing with 2 additions and 2 deletions
+2 -2
......@@ -214,14 +214,14 @@ func (s *KeeperTestHelper) BeginNewBlockWithProposer(executeNextEpoch bool, prop
reqBeginBlock := abci.RequestBeginBlock{Header: header, LastCommitInfo: lastCommitInfo}
fmt.Println("beginning block ", s.Ctx.BlockHeight())
s.App.BeginBlocker(s.Ctx, reqBeginBlock)
s.App.BeginBlock(reqBeginBlock)
s.Ctx = s.App.NewContext(false, reqBeginBlock.Header)
}
// EndBlock ends the block, and runs commit
func (s *KeeperTestHelper) EndBlock() {
reqEndBlock := abci.RequestEndBlock{Height: s.Ctx.BlockHeight()}
s.App.EndBlocker(s.Ctx, reqEndBlock)
s.App.EndBlock(reqEndBlock)
}
// AllocateRewardsToValidator allocates reward tokens to a distribution module then allocates rewards to the validator address.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment