Skip to content

Commit

Permalink
Merge pull request #146 from bandprotocol/adjust-block-params
Browse files Browse the repository at this point in the history
(app) Adjust block params on init and migrate command
  • Loading branch information
taobun authored Aug 10, 2021
2 parents 0dfc2bc + 96d6a53 commit 237d356
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Changelog

## Unreleased
## v2.1.0

- (app) Adjust block params on init and migrate command
- (bandd) Bump SDK to 0.42.9 to resolve IBC channel restart issue (9800)[https://github.com/cosmos/cosmos-sdk/issues/9800].
- (yoda) Add retry logic when query data from node
- (bandd) Parameterized max data report size
8 changes: 4 additions & 4 deletions cmd/bandd/cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,10 @@ func InitCmd(customAppState map[string]json.RawMessage, defaultNodeHome string)
genDoc.Validators = nil
genDoc.AppState = appState
genDoc.ConsensusParams = types.DefaultConsensusParams()
// TODO: Revisit max block size
// genDoc.ConsensusParams.Block.MaxBytes = 1000000 // 1M bytes
genDoc.ConsensusParams.Block.MaxGas = 40000000 // 40M gas
genDoc.ConsensusParams.Block.TimeIotaMs = 1000 // 1 second

genDoc.ConsensusParams.Block.MaxBytes = 1000000 // 1M bytes
genDoc.ConsensusParams.Block.MaxGas = 8000000 // 8M gas
genDoc.ConsensusParams.Block.TimeIotaMs = 1000 // 1 second
genDoc.ConsensusParams.Validator.PubKeyTypes = []string{types.ABCIPubKeyTypeSecp256k1}
if err = genutil.ExportGenesisFile(genDoc, genFile); err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion cmd/bandd/cmd/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func GenesisDocFromFile(genDocFile string) (*tmtypes.GenesisDoc, error) {
}

genDoc.ConsensusParams.Block.MaxBytes = 1000000 // 1M bytes
genDoc.ConsensusParams.Block.MaxGas = 40000000 // 40M gas
genDoc.ConsensusParams.Block.MaxGas = 8000000 // 8M gas
genDoc.ConsensusParams.Block.TimeIotaMs = 1000 // 1 second

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

0 comments on commit 237d356

Please sign in to comment.