fix: remove BlockExecutor default impl

This commit is contained in:
Matthias Seitz
2023-01-03 13:24:06 +01:00
parent a7f8d4fc39
commit c7dc22fd41

View File

@@ -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