1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use tendermint::consensus::params::VersionParams;
use tendermint::{block, consensus, evidence, public_key::Algorithm};
pub fn default_consensus_params() -> consensus::Params {
consensus::Params {
block: block::Size {
max_bytes: 22020096,
max_gas: -1,
},
evidence: evidence::Params {
max_age_num_blocks: 100000,
max_age_duration: evidence::Duration(std::time::Duration::new(48 * 3600, 0)),
max_bytes: 1048576,
},
validator: consensus::params::ValidatorParams {
pub_key_types: vec![Algorithm::Ed25519],
},
version: Some(VersionParams::default()),
}
}