mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-17 18:31:42 -05:00
Add tests for withdrawals provider (#10428)
This commit is contained in:
@@ -1036,6 +1036,7 @@ mod tests {
|
||||
B256::default(),
|
||||
0..2,
|
||||
None,
|
||||
None,
|
||||
);
|
||||
handle.provider.extend_blocks(blocks.iter().cloned().map(|b| (b.hash(), b.unseal())));
|
||||
|
||||
@@ -1061,6 +1062,7 @@ mod tests {
|
||||
B256::default(),
|
||||
0..2,
|
||||
None,
|
||||
None,
|
||||
);
|
||||
|
||||
// Insert only blocks in ranges 1-25 and 50-75
|
||||
@@ -1153,9 +1155,9 @@ mod tests {
|
||||
|
||||
let terminal_block_number = 1000;
|
||||
let consensus_terminal_block =
|
||||
random_block(&mut rng, terminal_block_number, None, None, None, None);
|
||||
random_block(&mut rng, terminal_block_number, None, None, None, None, None);
|
||||
let execution_terminal_block =
|
||||
random_block(&mut rng, terminal_block_number, None, None, None, None);
|
||||
random_block(&mut rng, terminal_block_number, None, None, None, None, None);
|
||||
|
||||
let transition_config = TransitionConfiguration {
|
||||
terminal_total_difficulty: handle
|
||||
@@ -1196,8 +1198,15 @@ mod tests {
|
||||
let (handle, api) = setup_engine_api();
|
||||
|
||||
let terminal_block_number = 1000;
|
||||
let terminal_block =
|
||||
random_block(&mut generators::rng(), terminal_block_number, None, None, None, None);
|
||||
let terminal_block = random_block(
|
||||
&mut generators::rng(),
|
||||
terminal_block_number,
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
);
|
||||
|
||||
let transition_config = TransitionConfiguration {
|
||||
terminal_total_difficulty: handle
|
||||
|
||||
Reference in New Issue
Block a user