From 57a798a56219a6581a78f94976f592b88ea3aa01 Mon Sep 17 00:00:00 2001 From: Callum Waters Date: Fri, 19 May 2023 15:09:01 +0200 Subject: [PATCH] feat: allow endblocker to update app version (#321) --- baseapp/baseapp.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/baseapp/baseapp.go b/baseapp/baseapp.go index fbab3683f67d..7c37cda765e4 100644 --- a/baseapp/baseapp.go +++ b/baseapp/baseapp.go @@ -465,6 +465,8 @@ func (app *BaseApp) GetConsensusParams(ctx sdk.Context) *abci.ConsensusParams { cp.Validator = &vp } + cp.Version = &tmproto.VersionParams{AppVersion: app.appVersion} + return cp }