changes for tendermint v0.34.21

This commit is contained in:
0xmuralik
2022-09-30 12:11:39 +05:30
parent fa02642220
commit 01fbfc6c38
28 changed files with 1358 additions and 341 deletions
+7 -7
View File
@@ -4,7 +4,7 @@ import (
"fmt"
"math/big"
prototypes "github.com/tendermint/tendermint/proto/tendermint/types"
abci "github.com/tendermint/tendermint/abci/types"
)
func (suite *KeeperTestSuite) TestCalculateBaseFee() {
@@ -39,11 +39,11 @@ func (suite *KeeperTestSuite) TestCalculateBaseFee() {
suite.app.FeeMarketKeeper.SetBlockGasUsed(suite.ctx, 100)
// Set target/gasLimit through Consensus Param MaxGas
blockParams := prototypes.BlockParams{
blockParams := abci.BlockParams{
MaxGas: 100,
MaxBytes: 10,
}
consParams := prototypes.ConsensusParams{Block: &blockParams}
consParams := abci.ConsensusParams{Block: &blockParams}
suite.ctx = suite.ctx.WithConsensusParams(&consParams)
// set ElasticityMultiplier
@@ -61,11 +61,11 @@ func (suite *KeeperTestSuite) TestCalculateBaseFee() {
suite.app.FeeMarketKeeper.SetBlockGasUsed(suite.ctx, 200)
blockParams := prototypes.BlockParams{
blockParams := abci.BlockParams{
MaxGas: 100,
MaxBytes: 10,
}
consParams := prototypes.ConsensusParams{Block: &blockParams}
consParams := abci.ConsensusParams{Block: &blockParams}
suite.ctx = suite.ctx.WithConsensusParams(&consParams)
params := suite.app.FeeMarketKeeper.GetParams(suite.ctx)
@@ -82,11 +82,11 @@ func (suite *KeeperTestSuite) TestCalculateBaseFee() {
suite.app.FeeMarketKeeper.SetBlockGasUsed(suite.ctx, 50)
blockParams := prototypes.BlockParams{
blockParams := abci.BlockParams{
MaxGas: 100,
MaxBytes: 10,
}
consParams := prototypes.ConsensusParams{Block: &blockParams}
consParams := abci.ConsensusParams{Block: &blockParams}
suite.ctx = suite.ctx.WithConsensusParams(&consParams)
params := suite.app.FeeMarketKeeper.GetParams(suite.ctx)