From 7d7ac4b5aa85277f4fabb5909220b0f792719432 Mon Sep 17 00:00:00 2001 From: geemo Date: Thu, 2 Mar 2023 02:27:54 -0600 Subject: [PATCH] add traits --- consensus/src/rpc/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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>;