update slow claps because of finality delay non-option type
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
This commit is contained in:
parent
7bb18939bd
commit
818f41d05e
@ -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
|
||||
|
@ -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 {
|
||||
|
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user