forked from evmos/ethermint
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: fix integration test(broken test - patch file, SyncInfo -> sync…
…_info
- Loading branch information
Showing
3 changed files
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
diff --git a/app/app.go b/app/app.go | ||
index 158bf7a3..a3b5718c 100644 | ||
index acd2c76b..bb6faed3 100644 | ||
--- a/app/app.go | ||
+++ b/app/app.go | ||
@@ -681,6 +681,10 @@ func (app *EthermintApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBloc | ||
@@ -907,6 +907,10 @@ func (app *EthermintApp) PreBlocker(ctx sdk.Context, _ *abci.RequestFinalizeBloc | ||
|
||
// EndBlocker updates every end block | ||
func (app *EthermintApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock { | ||
// BeginBlocker updates every begin block | ||
func (app *EthermintApp) BeginBlocker(ctx sdk.Context) (sdk.BeginBlock, error) { | ||
+ if ctx.BlockHeight()%10 == 0 { | ||
+ store := ctx.KVStore(app.keys["evm"]) | ||
+ store.Set([]byte("hello"), []byte("world")) | ||
+ } | ||
return app.mm.EndBlock(ctx, req) | ||
return app.ModuleManager.BeginBlock(ctx) | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters