Add tests for withdrawals provider (#10428)

This commit is contained in:
Jennifer
2024-08-22 21:58:25 +01:00
committed by GitHub
parent 70a1015fd1
commit 24495cdc5d
28 changed files with 293 additions and 98 deletions

View File

@@ -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