Skip to content

Commit d362ebd

Browse files
authored
Merge pull request #77 from KiFoundation/fix/communitytax-halt
Fix CommunityTax value
2 parents 1395055 + 77ea41e commit d362ebd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

app/app.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -782,6 +782,15 @@ func (app *KitoolsApp) Name() string { return app.BaseApp.Name() }
782782

783783
// BeginBlocker application updates every begin block
784784
func (app *KitoolsApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock {
785+
786+
if ctx.BlockHeight() >= 13519355 && ctx.BlockHeight() <= 13519356 {
787+
distrParams := app.DistrKeeper.GetParams(ctx)
788+
ctx.Logger().Info(fmt.Sprintf("Current DistrKeeper Params: %v", distrParams))
789+
distrParams.CommunityTax = sdk.NewDecWithPrec(4, 2)
790+
ctx.Logger().Info(fmt.Sprintf("New DistrKeeper Params: %v", distrParams))
791+
app.DistrKeeper.SetParams(ctx, distrParams)
792+
}
793+
785794
return app.mm.BeginBlock(ctx, req)
786795
}
787796

0 commit comments

Comments
 (0)