mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat(exex): write ahead log (#10995)
This commit is contained in:
@ -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.
|
||||
|
||||
Reference in New Issue
Block a user