Add --chain option. (#122)

* Add --chain option.

* Reinstate bail on unknown runtime.
This commit is contained in:
Gav Wood
2018-04-12 13:15:56 +02:00
committed by GitHub
parent 1972d612fa
commit 46e3c32e49
7 changed files with 149 additions and 53 deletions
+1 -1
View File
@@ -177,7 +177,7 @@ impl<B: Backend> PolkadotApi for Client<B, NativeExecutor<LocalDispatch>>
fn check_id(&self, id: BlockId) -> Result<CheckedId> {
// bail if the code is not the same as the natively linked.
if self.code_at(&id)? != LocalDispatch::native_equivalent() {
warn!("This node is out of date. Block authoring may not work correctly.")
bail!("This node is out of date. Block authoring may not work correctly. Bailing.")
}
Ok(CheckedId(id))