Skip to content

Commit

Permalink
d
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Sep 27, 2024
1 parent 05b6985 commit 55f6856
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions integration_tests/configs/broken-cronosd.patch
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
diff --git a/app/app.go b/app/app.go
index c5190b3..1aaa765 100644
index 6e9d3a80..83b83274 100644
--- a/app/app.go
+++ b/app/app.go
@@ -1057,6 +1057,11 @@ func (app *App) BeginBlocker(ctx sdk.Context) (sdk.BeginBlock, error) {
@@ -1144,6 +1144,10 @@ func (app *App) BeginBlocker(ctx sdk.Context) (sdk.BeginBlock, error) {

// EndBlocker application updates every end block
func (app *App) EndBlocker(ctx sdk.Context) (sdk.EndBlock, error) {
+ if ctx.BlockHeight()%10 == 0 {
+ store := ctx.KVStore(app.keys["cronos"])
+ store.Set([]byte("hello"), []byte("world"))
+ }
+
return app.ModuleManager.EndBlock(ctx)
}

rsp, err := app.ModuleManager.EndBlock(ctx)
if err := app.RefreshBlockList(ctx); err != nil {
app.Logger().Error("failed to update blocklist", "error", err)

0 comments on commit 55f6856

Please sign in to comment.