Skip to content

Commit 237d356

Browse files
authored
Merge pull request #146 from bandprotocol/adjust-block-params
(app) Adjust block params on init and migrate command
2 parents 0dfc2bc + 96d6a53 commit 237d356

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Changelog
22

3-
## Unreleased
3+
## v2.1.0
44

5+
- (app) Adjust block params on init and migrate command
56
- (bandd) Bump SDK to 0.42.9 to resolve IBC channel restart issue (9800)[https://github.com/cosmos/cosmos-sdk/issues/9800].
7+
- (yoda) Add retry logic when query data from node
68
- (bandd) Parameterized max data report size

cmd/bandd/cmd/init.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,10 @@ func InitCmd(customAppState map[string]json.RawMessage, defaultNodeHome string)
173173
genDoc.Validators = nil
174174
genDoc.AppState = appState
175175
genDoc.ConsensusParams = types.DefaultConsensusParams()
176-
// TODO: Revisit max block size
177-
// genDoc.ConsensusParams.Block.MaxBytes = 1000000 // 1M bytes
178-
genDoc.ConsensusParams.Block.MaxGas = 40000000 // 40M gas
179-
genDoc.ConsensusParams.Block.TimeIotaMs = 1000 // 1 second
176+
177+
genDoc.ConsensusParams.Block.MaxBytes = 1000000 // 1M bytes
178+
genDoc.ConsensusParams.Block.MaxGas = 8000000 // 8M gas
179+
genDoc.ConsensusParams.Block.TimeIotaMs = 1000 // 1 second
180180
genDoc.ConsensusParams.Validator.PubKeyTypes = []string{types.ABCIPubKeyTypeSecp256k1}
181181
if err = genutil.ExportGenesisFile(genDoc, genFile); err != nil {
182182
return err

cmd/bandd/cmd/migrate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func GenesisDocFromFile(genDocFile string) (*tmtypes.GenesisDoc, error) {
4444
}
4545

4646
genDoc.ConsensusParams.Block.MaxBytes = 1000000 // 1M bytes
47-
genDoc.ConsensusParams.Block.MaxGas = 40000000 // 40M gas
47+
genDoc.ConsensusParams.Block.MaxGas = 8000000 // 8M gas
4848
genDoc.ConsensusParams.Block.TimeIotaMs = 1000 // 1 second
4949

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

0 commit comments

Comments
 (0)