Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Register
Sign in
Toggle navigation
Menu
Open sidebar
Tiger Ton
osmosis
Commits
307d7503
Commit
307d7503
authored
2 years ago
by
catShaark
Browse files
Options
Download
Email Patches
Plain Diff
use BeginBlocker and EndBlocker in apptesting
parent
805f80ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/apptesting/test_suite.go
+2
-2
app/apptesting/test_suite.go
with
2 additions
and
2 deletions
+2
-2
app/apptesting/test_suite.go
+
2
-
2
View file @
307d7503
...
...
@@ -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
.
BeginBlock
er
(
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
.
EndBlock
er
(
s
.
Ctx
,
reqEndBlock
)
s
.
App
.
EndBlock
(
reqEndBlock
)
}
// AllocateRewardsToValidator allocates reward tokens to a distribution module then allocates rewards to the validator address.
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets