Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit ae94cc9

Browse files
arkpargavofyork
authored andcommitted
Continue sync after ancestry search (#538)
1 parent d23a89a commit ae94cc9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

substrate/network/src/sync.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,8 @@ impl<B: BlockT> ChainSync<B> {
237237
let is_best = new_blocks.first().and_then(|b| b.block.header.as_ref()).map(|h| best_seen.as_ref().map_or(false, |n| h.number() >= n));
238238
let origin = if is_best.unwrap_or_default() { BlockOrigin::NetworkBroadcast } else { BlockOrigin::NetworkInitialSync };
239239
let import_queue = self.import_queue.clone();
240-
import_queue.import_blocks(self, protocol, (origin, new_blocks))
240+
import_queue.import_blocks(self, protocol, (origin, new_blocks));
241+
self.maintain_sync(protocol);
241242
}
242243

243244
pub fn maintain_sync(&mut self, protocol: &mut Context<B>) {

0 commit comments

Comments
 (0)