Skip to content

Commit

Permalink
add "--skip-update-config" (#969)
Browse files Browse the repository at this point in the history
* add --skip-update-config

* update checkpoint
  • Loading branch information
shaorongqiang authored May 22, 2023
1 parent ba1c29f commit c19a103
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/abciapp/src/bins/findorad.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ fn node_command() -> Result<()> {
return Ok(());
}

{
if !CFG.skip_update_config {
let src_cfg = [
"timeout_propose(.*)",
"timeout_propose_delta(.*)",
Expand Down
2 changes: 1 addition & 1 deletion src/components/config/src/abci/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ lazy_static! {
fns_registry: "0x57e8782c2f77B99823EeA48aCE3Eb7635F0B35F9".to_owned(),
lowlevel_data_min: 3971239,
lowlevel_data_max: 4004430,
fix_staking_validator: 4062930
fix_staking_validator: 4077000
};
}

Expand Down
4 changes: 4 additions & 0 deletions src/components/config/src/findora/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ pub mod config {

#[derive(Default)]
pub struct Config {
pub skip_update_config: bool,
pub enable_enterprise_web3: bool,
pub tendermint_host: String,
pub tendermint_port: u16,
Expand Down Expand Up @@ -184,6 +185,7 @@ pub mod config {
let matches = {
let node = SubCommand::with_name("node")
.about("Start findora node.")
.arg_from_usage("--skip-update-config 'skip update config'")
.arg_from_usage("--enable-enterprise-web3 'enable enterprise-web3'")
.arg_from_usage("-c, --config=[FILE] 'Path to $TMHOM/config/config.toml'")
.arg_from_usage("--arc-history=[EVM archive node tracing history, format \"PERIOD,INTERVAL\" in days]")
Expand Down Expand Up @@ -259,6 +261,7 @@ pub mod config {

let enable_enterprise_web3 = m.is_present("enable-enterprise-web3");

let skip_update_config = m.is_present("skip-update-config");
let tcfg = m
.value_of("config")
.map(|v| v.to_owned())
Expand Down Expand Up @@ -375,6 +378,7 @@ pub mod config {
};

let res = Config {
skip_update_config,
enable_enterprise_web3,
tendermint_host: th,
tendermint_port: tp,
Expand Down

0 comments on commit c19a103

Please sign in to comment.