Skip to content

Commit

Permalink
fix test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonberg1997 committed Jun 27, 2023
1 parent e890c7b commit dcfdf94
Show file tree
Hide file tree
Showing 5 changed files with 194 additions and 96 deletions.
7 changes: 4 additions & 3 deletions config/toml.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ moniker = "{{ .BaseConfig.Moniker }}"
# allows them to catchup quickly by downloading blocks in parallel
# and verifying their commits
#
# Deprecated: this key will be removed and BlockSync will be enabled
# Deprecated: this key will be removed and BlockSync will be enabled
# unconditionally in the next major release.
block_sync = {{ .BaseConfig.BlockSyncMode }}
Expand Down Expand Up @@ -437,7 +437,7 @@ chunk_fetchers = "{{ .StateSync.ChunkFetchers }}"
[blocksync]
# Block Sync version to use:
#
#
# In v0.37, v1 and v2 of the block sync protocols were deprecated.
# Please use v0 instead.
#
Expand Down Expand Up @@ -592,7 +592,8 @@ var testGenesisFmt = `{
"initial_height": "1",
"consensus_params": {
"block": {
"max_bytes": "22020096",
"max_tx_nums": "3000",
"max_bytes": "3145728",
"max_gas": "-1",
"time_iota_ms": "10"
},
Expand Down
162 changes: 121 additions & 41 deletions proto/tendermint/types/params.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 9 additions & 5 deletions proto/tendermint/types/params.proto
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,17 @@ message ConsensusParams {

// BlockParams contains limits on the block size.
message BlockParams {
// Max tx nums in a block.
// Note: must be greater than 0
int64 max_tx_nums = 1;
// Max block size, in bytes.
// Note: must be greater than 0
int64 max_bytes = 1;
int64 max_bytes = 2;
// Max gas per block.
// Note: must be greater or equal to -1
int64 max_gas = 2;
int64 max_gas = 3;

reserved 3; // was TimeIotaMs see https://github.com/cometbft/cometbft/pull/5792
reserved 4; // was TimeIotaMs see https://github.com/cometbft/cometbft/pull/5792
}

// EvidenceParams determine how we handle evidence of malfeasance.
Expand Down Expand Up @@ -72,6 +75,7 @@ message VersionParams {
//
// It is hashed into the Header.ConsensusHash.
message HashedParams {
int64 block_max_bytes = 1;
int64 block_max_gas = 2;
int64 block_max_tx_nums = 1;
int64 block_max_bytes = 2;
int64 block_max_gas = 3;
}
Loading

0 comments on commit dcfdf94

Please sign in to comment.