AuRa fix for 1.7.x series (#7666)

* Fix Temporarily Invalid blocks handling (#7613)

* Handle temporarily invalid blocks in sync.

* Fix tests.

* Bump rustc-serialize

* Bump version.

* Update .gitlab-ci.yml

fix lint

* Remove slash from gitlab ci script to fix builds

* Start build.
This commit is contained in:
Tomasz Drwięga
2018-01-22 23:44:59 +01:00
committed by Afri Schoedon
parent f96d152548
commit 8b749367fd
8 changed files with 94 additions and 89 deletions

View File

@@ -519,6 +519,10 @@ impl BlockDownloader {
trace!(target: "sync", "Unknown new block parent, restarting sync");
break;
},
Err(BlockImportError::Block(BlockError::TemporarilyInvalid(_))) => {
debug!(target: "sync", "Block temporarily invalid, restarting sync");
break;
},
Err(e) => {
debug!(target: "sync", "Bad block {:?} : {:?}", h, e);
bad = true;