Skip to content

Commit 58e15d0

Browse files
committed
add best block to syncing tips
1 parent 2f9e565 commit 58e15d0

File tree

1 file changed

+10
-0
lines changed
  • client/mapping-sync/src/kv

1 file changed

+10
-0
lines changed

client/mapping-sync/src/kv/mod.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,16 @@ where
186186
current_syncing_tips.append(&mut leaves);
187187
}
188188

189+
let best_hash = client.info().best_hash;
190+
if SyncStrategy::Parachain == strategy
191+
&& !frontier_backend
192+
.mapping()
193+
.is_synced(&best_hash)?
194+
{
195+
// Add best block to current_syncing_tips
196+
current_syncing_tips.push(best_hash);
197+
}
198+
189199
let mut operating_header = None;
190200
while let Some(checking_tip) = current_syncing_tips.pop() {
191201
if let Some(checking_header) = fetch_header(

0 commit comments

Comments
 (0)