Files
reth/crates/interfaces/src/executor.rs
rakita 7ecbe01741 feat(provider): Add StorageProvider impl, table changes (#172)
* feat(provider): Add StorageProvider impl, table changes

* unwind header numbers by walker (#174)

* readme, fmt

* fix tests

* Update crates/interfaces/src/provider/db_provider/storage.rs

Co-authored-by: Roman Krasiuk <rokrassyuk@gmail.com>

* Update crates/interfaces/src/provider/db_provider/storage.rs

Co-authored-by: Roman Krasiuk <rokrassyuk@gmail.com>

Co-authored-by: Roman Krasiuk <rokrassyuk@gmail.com>
2022-11-08 15:55:45 +01:00

21 lines
461 B
Rust

use async_trait::async_trait;
use reth_primitives::Block;
use thiserror::Error;
/// Takes block and executes it, returns error
#[async_trait]
pub trait BlockExecutor {
/// Execute block
async fn execute(&self, _block: Block) -> Error {
Error::VerificationFailed
}
}
/// BlockExecutor Errors
#[derive(Error, Debug, Clone, PartialEq, Eq)]
pub enum Error {
/// Example of error
#[error("Example of error.")]
VerificationFailed,
}