Skip to content

Commit 32fc9ee

Browse files
authored
fix local block number in remote source mode (#491)
1 parent 2160e45 commit 32fc9ee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/node/src/add_ons/remote_block_source.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ where
6868

6969
// Determine the last imported block by finding the highest common block
7070
// between the local chain and the remote node.
71-
let local_head = provider.best_block_number()?;
71+
let local_head = handle.status().await?.l2.fcs.head_block_info().number;
7272
let remote_head = remote.get_block_number().await?;
7373

7474
let last_imported_block;

0 commit comments

Comments
 (0)