mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-11 13:17:08 +00:00
Add --chain option. (#122)
* Add --chain option. * Reinstate bail on unknown runtime.
This commit is contained in:
1 parent
1972d612fa
commit
46e3c32e49
7 files changed
+149
-53
No files matched your search
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user