update slow claps because of finality delay non-option type

Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
This commit is contained in:
Uncle Stretch 2025-06-19 15:00:30 +03:00
parent 7bb18939bd
commit 818f41d05e
Signed by: str3tch
GPG Key ID: 84F3190747EE79AA
3 changed files with 3 additions and 4 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "ghost-slow-clap"
version = "0.3.28"
version = "0.3.29"
description = "Applause protocol for the EVM bridge"
license.workspace = true
authors.workspace = true

View File

@ -723,9 +723,8 @@ impl<T: Config> Pallet<T> {
network_id
)?;
let finality_delay = network_data.finality_delay.unwrap_or_default();
let estimated_block = maybe_new_evm_block
.map(|new_evm_block| new_evm_block.saturating_sub(finality_delay))
.map(|new_evm_block| new_evm_block.saturating_sub(network_data.finality_delay))
.unwrap_or_default();
Ok(match maybe_block_range {

View File

@ -23,7 +23,7 @@ fn prepare_evm_network(
let network_data = NetworkData {
chain_name: "Ethereum".into(),
default_endpoint: get_rpc_endpoint(),
finality_delay: Some(69),
finality_delay: 69,
block_distance: 69,
network_type: ghost_networks::NetworkType::Evm,
gatekeeper: get_gatekeeper(),