From c307e926ef28e92568e7a5cf8276da1c7bbeda36 Mon Sep 17 00:00:00 2001 From: Roshan Date: Wed, 8 Mar 2023 16:53:45 +0800 Subject: [PATCH] fix: update gas price and consensus params --- app/config.go | 2 +- deployment/localup/localup.sh | 1 + e2e/core/basesuite.go | 6 ++---- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/app/config.go b/app/config.go index 33bbb7d19..42a81f87e 100644 --- a/app/config.go +++ b/app/config.go @@ -41,7 +41,7 @@ func NewDefaultAppConfig() *AppConfig { // own app.toml to override, or use this default value. // // In simapp, we set the min gas prices to 0. - srvCfg.MinGasPrices = "1000000000BNB" // 1gei + srvCfg.MinGasPrices = "5000000000BNB" // 5gei return &AppConfig{ Config: *srvCfg, diff --git a/deployment/localup/localup.sh b/deployment/localup/localup.sh index fe1dfc887..6a2d832ef 100755 --- a/deployment/localup/localup.sh +++ b/deployment/localup/localup.sh @@ -135,6 +135,7 @@ function generate_genesis() { sed -i -e "s/\"forced_settle_time\": \"86400\"/\"forced_settle_time\": \"100\"/g" ${workspace}/.local/validator${i}/config/genesis.json sed -i -e "s/172800s/${DEPOSIT_VOTE_PERIOD}/g" ${workspace}/.local/validator${i}/config/genesis.json sed -i -e "s/\"10000000\"/\"${GOV_MIN_DEPOSIT_AMOUNT}\"/g" ${workspace}/.local/validator${i}/config/genesis.json + sed -i -e "s/\"max_bytes\": \"22020096\"/\"max_bytes\": \"5242880\"/g" ${workspace}/.local/validator${i}/config/genesis.json done # enable swagger API for validator0 diff --git a/e2e/core/basesuite.go b/e2e/core/basesuite.go index cbf20a038..180b15cfd 100644 --- a/e2e/core/basesuite.go +++ b/e2e/core/basesuite.go @@ -48,10 +48,8 @@ func (s *BaseSuite) SetupSuite() { func (s *BaseSuite) SendTxBlock(msg sdk.Msg, from keys.KeyManager) (txRes *sdk.TxResponse) { mode := tx.BroadcastMode_BROADCAST_MODE_BLOCK txOpt := &types.TxOption{ - Mode: &mode, - GasLimit: 1000000, - Memo: "", - FeeAmount: sdk.Coins{{Denom: s.Config.Denom, Amount: types.NewIntFromInt64WithDecimal(1e6, types.DecimalGwei)}}, + Mode: &mode, + Memo: "", } s.Client.SetKeyManager(from) response, err := s.Client.BroadcastTx([]sdk.Msg{msg}, txOpt)