Skip to content

Commit 524304a

Browse files
committed
cleanup
1 parent b0e1e94 commit 524304a

File tree

3 files changed

+1
-13
lines changed

3 files changed

+1
-13
lines changed

crates/chain-orchestrator/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -650,9 +650,8 @@ impl<
650650
tx.set_finalized_l1_block_number(block_info.number).await?;
651651

652652
// Finalize consolidated batches up to the finalized L1 block number.
653-
let finalized_block_number = tx.get_finalized_l1_block_number().await?;
654653
let finalized_block_info =
655-
tx.finalize_consolidated_batches(finalized_block_number).await?;
654+
tx.finalize_consolidated_batches(block_info.number).await?;
656655

657656
// Get all unprocessed batches that have been finalized by this L1 block
658657
// finalization.

crates/database/db/src/db.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -917,10 +917,6 @@ mod test {
917917
.await;
918918
for batch in batches {
919919
let batch = batch.unwrap();
920-
println!(
921-
"Batch index: {}, finalized_block_number: {:?}",
922-
batch.index, batch.finalized_block_number
923-
);
924920
if batch.index == 0 {
925921
assert_eq!(batch.finalized_block_number, Some(0));
926922
} else if batch.index < 10 {

crates/database/db/src/models/l1_block.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,6 @@ pub struct Model {
1111
block_hash: Vec<u8>,
1212
}
1313

14-
// impl Model {
15-
// /// Returns the `BlockInfo` representation of this L1 block.
16-
// pub(crate) fn block_info(&self) -> BlockInfo {
17-
// BlockInfo { number: self.block_number as u64, hash: B256::from_slice(&self.block_hash) }
18-
// }
19-
// }
20-
2114
/// The relation for the batch input model.
2215
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
2316
pub enum Relation {}

0 commit comments

Comments
 (0)