File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -782,6 +782,15 @@ func (app *KitoolsApp) Name() string { return app.BaseApp.Name() }
782782
783783// BeginBlocker application updates every begin block 
784784func  (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
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments