Skip to content

Commit

Permalink
override F3 finality with FOREST_F3_FINALITY
Browse files Browse the repository at this point in the history
  • Loading branch information
hanabi1224 committed Sep 11, 2024
1 parent b0c4123 commit 0fa83ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/daemon/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,10 @@ pub(super) async fn start(
});

services.spawn_blocking({
let finality = chain_config.policy.chain_finality;
let finality = std::env::var("FOREST_F3_FINALITY")
.ok()
.and_then(|v| v.parse().ok())
.unwrap_or(chain_config.policy.chain_finality);
let default_f3_db_path = config
.client
.data_dir
Expand Down

0 comments on commit 0fa83ec

Please sign in to comment.