Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2646 from bandprotocol/increase-block-gas-and-bytes
Browse files Browse the repository at this point in the history
chain: modify max block gas and bytes on migrate command
  • Loading branch information
taobun authored Sep 17, 2020
2 parents dff4912 + 167a647 commit 668cdee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG_UNRELEASED.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

### Chain (Non-consensus)

- (impv) [\#2646](https://github.com/bandprotocol/bandchain/pull/2646) Modify max block gas and bytes on migrate command

### Yoda

### Emitter & Flusher
Expand Down
3 changes: 3 additions & 0 deletions chain/cmd/bandd/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ func GenesisDocFromFile(genDocFile string, cdc *codec.Codec) (*tmtypes.GenesisDo

// Set up Tendermint consensus params with default value.
genDoc.ConsensusParams.Evidence = tmtypes.DefaultEvidenceParams()
genDoc.ConsensusParams.Block.MaxBytes = 1000000 // 1M bytes
genDoc.ConsensusParams.Block.MaxGas = 5000000 // 5M gas
genDoc.ConsensusParams.Block.TimeIotaMs = 1000 // 1 second

if err := genDoc.ValidateAndComplete(); err != nil {
return nil, err
Expand Down

0 comments on commit 668cdee

Please sign in to comment.