Skip to content

Commit

Permalink
Merge pull request #149 from bandprotocol/increase-max-bytes
Browse files Browse the repository at this point in the history
Increase max bytes for evidence
  • Loading branch information
taobun authored Aug 11, 2021
2 parents 237d356 + 7bc8766 commit 6f5d474
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/bandd/cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func InitCmd(customAppState map[string]json.RawMessage, defaultNodeHome string)
genDoc.AppState = appState
genDoc.ConsensusParams = types.DefaultConsensusParams()

genDoc.ConsensusParams.Block.MaxBytes = 1000000 // 1M bytes
genDoc.ConsensusParams.Block.MaxBytes = 3000000 // 3M bytes
genDoc.ConsensusParams.Block.MaxGas = 8000000 // 8M gas
genDoc.ConsensusParams.Block.TimeIotaMs = 1000 // 1 second
genDoc.ConsensusParams.Validator.PubKeyTypes = []string{types.ABCIPubKeyTypeSecp256k1}
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 @@ -43,7 +43,7 @@ func GenesisDocFromFile(genDocFile string) (*tmtypes.GenesisDoc, error) {
return nil, fmt.Errorf("error reading GenesisDoc at %s: %w", genDocFile, err)
}

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

Expand Down

0 comments on commit 6f5d474

Please sign in to comment.