Skip to content

Commit

Permalink
move chain-id check to update module
Browse files Browse the repository at this point in the history
  • Loading branch information
Yun committed Sep 3, 2019
1 parent f0b59b4 commit 6cba0d0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,10 +336,8 @@ func (app *TerraApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.
treasuryTags := treasury.EndBlocker(ctx, app.treasuryKeeper)
tags = append(tags, treasuryTags...)

if ctx.ChainID() == "columbus-2" {
updateTags := update.EndBlocker(ctx, app.accountKeeper, app.oracleKeeper, app.marketKeeper)
tags = append(tags, updateTags...)
}
updateTags := update.EndBlocker(ctx, app.accountKeeper, app.oracleKeeper, app.marketKeeper)
tags = append(tags, updateTags...)

if app.assertInvariantsBlockly {
app.assertRuntimeInvariants()
Expand Down

0 comments on commit 6cba0d0

Please sign in to comment.