From c7dc22fd412e27c8ff321b7e76d84afac7e34d31 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Tue, 3 Jan 2023 13:24:06 +0100 Subject: [PATCH] fix: remove BlockExecutor default impl --- crates/interfaces/src/executor.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/crates/interfaces/src/executor.rs b/crates/interfaces/src/executor.rs index 3aa9259821..eab6d65d3a 100644 --- a/crates/interfaces/src/executor.rs +++ b/crates/interfaces/src/executor.rs @@ -4,11 +4,9 @@ use thiserror::Error; /// Takes block and executes it, returns error #[async_trait] -pub trait BlockExecutor { +pub trait BlockExecutor: Send + Sync { /// Execute block - async fn execute(&self, _block: Block) -> Error { - Error::VerificationFailed - } + async fn execute(&self, _block: Block) -> Error; } /// BlockExecutor Errors