Encode networkid as a u64.

This commit is contained in:
Gav Wood
2016-12-04 10:48:26 -08:00
parent 0c7b7fc8bc
commit 2911c549e3
8 changed files with 19 additions and 19 deletions

View File

@@ -194,7 +194,7 @@ pub fn execute(cmd: RunCmd, logger: Arc<RotatingLogger>) -> Result<(), String> {
let mut sync_config = SyncConfig::default();
sync_config.network_id = match cmd.network_id {
Some(id) => id,
None => spec.network_id(),
None => spec.network_id() as usize,
};
if spec.subprotocol_name().len() != 3 {
warn!("Your chain specification's subprotocol length is not 3. Ignoring.");