Skip to content

Commit ccc06de

Browse files
authored
fixed adding block when new batch is created (#598)
* fixed adding block when new batch is created * unneeded semicolon
1 parent e1de61c commit ccc06de

File tree

3 files changed

+21
-23
lines changed

3 files changed

+21
-23
lines changed

Cargo.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ resolver = "2"
1313
default-members = ["whitelist"]
1414

1515
[workspace.package]
16-
version = "1.8.1"
16+
version = "1.8.2"
1717
edition = "2024"
1818
repository = "https://github.com/NethermindEth/Catalyst"
1919
license = "MIT"

whitelist/src/node/batch_manager/mod.rs

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ impl BatchManager {
501501
.await?;
502502
if forced_inclusion_block_response.is_some() {
503503
let (l2_block, l2_slot_info) = self.get_l2_block_after_forced_inclusion().await?;
504-
Ok((
504+
return Ok((
505505
forced_inclusion_block_response,
506506
self.add_new_l2_block_to_new_batch(
507507
l2_block,
@@ -510,22 +510,20 @@ impl BatchManager {
510510
operation_type,
511511
)
512512
.await?,
513-
))
514-
} else {
515-
Ok((None, None))
513+
));
516514
}
517-
} else {
518-
Ok((
519-
None,
520-
self.add_new_l2_block_to_new_batch(
521-
l2_block,
522-
l2_slot_info,
523-
end_of_sequencing,
524-
operation_type,
525-
)
526-
.await?,
527-
))
528515
}
516+
517+
Ok((
518+
None,
519+
self.add_new_l2_block_to_new_batch(
520+
l2_block,
521+
l2_slot_info,
522+
end_of_sequencing,
523+
operation_type,
524+
)
525+
.await?,
526+
))
529527
}
530528

531529
async fn add_new_l2_block_to_new_batch(

0 commit comments

Comments
 (0)