Skip to content

Commit

Permalink
fix: update gas price and consensus params
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonberg1997 committed Mar 8, 2023
1 parent 578320b commit c307e92
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions deployment/localup/localup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 2 additions & 4 deletions e2e/core/basesuite.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c307e92

Please sign in to comment.