Track import errors and restart sync

This commit is contained in:
arkpar 2016-03-29 23:29:43 +02:00
parent 3468b9a8c0
commit a8772ed5c1

View File

@ -1344,6 +1344,10 @@ impl ChainSync {
// Propagate latests blocks
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?
}