diff --git a/consensus/src/rpc/mod.rs b/consensus/src/rpc/mod.rs index c478f67..bbba651 100644 --- a/consensus/src/rpc/mod.rs +++ b/consensus/src/rpc/mod.rs @@ -9,7 +9,7 @@ use crate::types::{BeaconBlock, Bootstrap, FinalityUpdate, OptimisticUpdate, Upd // implements https://github.com/ethereum/beacon-APIs/tree/master/apis/beacon/light_client #[cfg_attr(not(target_arch = "wasm32"), async_trait)] #[cfg_attr(target_arch = "wasm32", async_trait(?Send))] -pub trait ConsensusNetworkInterface { +pub trait ConsensusNetworkInterface: Sync + Send + 'static { fn new(path: &str) -> Self; async fn get_bootstrap(&self, block_root: &'_ [u8]) -> Result; async fn get_updates(&self, period: u64, count: u8) -> Result>;