feat(exex): write ahead log (#10995)

This commit is contained in:
Alexey Shekhirin
2024-09-24 15:19:44 +01:00
committed by GitHub
parent f606b70b7f
commit aac78821c3
8 changed files with 839 additions and 3 deletions

View File

@ -36,7 +36,7 @@ pub struct BlockParams {
}
/// Used to pass arguments for random block generation function in tests
#[derive(Debug, Default)]
#[derive(Debug)]
pub struct BlockRangeParams {
/// The parent hash of the block.
pub parent: Option<B256>,
@ -50,6 +50,17 @@ pub struct BlockRangeParams {
pub withdrawals_count: Option<Range<u8>>,
}
impl Default for BlockRangeParams {
fn default() -> Self {
Self {
parent: None,
tx_count: 0..u8::MAX / 2,
requests_count: None,
withdrawals_count: None,
}
}
}
/// Returns a random number generator that can be seeded using the `SEED` environment variable.
///
/// If `SEED` is not set, a random seed is used.