pub trait BlockExecutionWriter:
NodePrimitivesProvider<Primitives: NodePrimitives<Block = Self::Block>>
+ BlockWriter
+ Send
+ Sync {
// Required methods
fn take_block_and_execution_above(
&self,
block: BlockNumber,
remove_from: StorageLocation,
) -> ProviderResult<Chain<Self::Primitives>>;
fn remove_block_and_execution_above(
&self,
block: BlockNumber,
remove_from: StorageLocation,
) -> ProviderResult<()>;
}
Expand description
BlockExecution
Writer
Required Methods§
Sourcefn take_block_and_execution_above(
&self,
block: BlockNumber,
remove_from: StorageLocation,
) -> ProviderResult<Chain<Self::Primitives>>
fn take_block_and_execution_above( &self, block: BlockNumber, remove_from: StorageLocation, ) -> ProviderResult<Chain<Self::Primitives>>
Take all of the blocks above the provided number and their execution result
The passed block number will stay in the database.
Accepts StorageLocation
specifying from where should transactions and receipts be
removed.
Sourcefn remove_block_and_execution_above(
&self,
block: BlockNumber,
remove_from: StorageLocation,
) -> ProviderResult<()>
fn remove_block_and_execution_above( &self, block: BlockNumber, remove_from: StorageLocation, ) -> ProviderResult<()>
Remove all of the blocks above the provided number and their execution result
The passed block number will stay in the database.
Accepts StorageLocation
specifying from where should transactions and receipts be
removed.