Track import errors and restart sync
This commit is contained in:
parent
3468b9a8c0
commit
a8772ed5c1
@ -1344,6 +1344,10 @@ impl ChainSync {
|
|||||||
// Propagate latests blocks
|
// Propagate latests blocks
|
||||||
self.propagate_latest_blocks(io);
|
self.propagate_latest_blocks(io);
|
||||||
}
|
}
|
||||||
|
if !invalid.is_empty() {
|
||||||
|
trace!(target: "sync", "Bad blocks in the queue, restarting");
|
||||||
|
self.restart_on_bad_block(io);
|
||||||
|
}
|
||||||
// TODO [todr] propagate transactions?
|
// TODO [todr] propagate transactions?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user