Skip to content

Instantly share code, notes, and snippets.

View fedekunze's full-sized avatar
:electron:
Developing Cosmos

Federico Kunze Küllmer fedekunze

:electron:
Developing Cosmos
View GitHub Profile
@fedekunze
fedekunze / app.go
Last active August 5, 2022 09:55
Guide: Cosmos SDK Hard Forks for Security Vulnerabilities
// BeginBlocker runs the Tendermint ABCI BeginBlock logic. It executes state changes at the beginning
// of the new block for every registered module. If there is a registered fork at the current height,
// BeginBlocker will schedule the upgrade plan and perform the state migration (if any).
func (app *App) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock {
// Perform any scheduled forks before executing the modules logic
app.ScheduleForkUpgrade(ctx)
return app.mm.BeginBlock(ctx, req)
}

Keybase proof

I hereby claim:

  • I am fedekunze on github.
  • I am fekunze (https://keybase.io/fekunze) on keybase.
  • I have a public key ASD3FByEBZSk4L1z70Isw_czrO8Qa2oWRj6Hi5ImPNB1ewo

To claim this, I am signing this object: