mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-30 09:38:24 -05:00
* 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>
21 lines
461 B
Rust
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,
|
|
}
|