Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(proposer): adjust block propose duration #2910

Merged
merged 1 commit into from
Nov 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions crates/rooch-rpc-server/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ pub async fn run_start_server(opt: RoochOpt, server_opt: ServerOpt) -> Result<Se
// tracing_subscriber can only be inited once.
let _ = tracing_subscriber::fmt::try_init();

//Exit the process when some thread panic
// Exit the process when some thread panic
// take_hook() returns the default hook in case when a custom one is not set
let orig_hook = panic::take_hook();
panic::set_hook(Box::new(move |panic_info| {
Expand All @@ -196,7 +196,7 @@ pub async fn run_start_server(opt: RoochOpt, server_opt: ServerOpt) -> Result<Se
// Initialize metrics before creating any stores
init_metrics(&prometheus_registry);

//Init store
// Init store
let store_config = opt.store_config();

let rooch_db = RoochDB::init(store_config, &prometheus_registry)?;
Expand Down Expand Up @@ -323,7 +323,7 @@ pub async fn run_start_server(opt: RoochOpt, server_opt: ServerOpt) -> Result<Se
.await?;
let proposer_proxy = ProposerProxy::new(proposer.clone().into());
//TODO load from config
let block_propose_duration_in_seconds: u64 = 5;
let block_propose_duration_in_seconds: u64 = 600;
let mut timers = vec![];
let proposer_timer = Timer::start(
proposer,
Expand Down
Loading