Browse Source

Make sure bitcoind 0.16+ is used

refactor-mempool
Roman Zeyde 7 years ago
parent
commit
308333f40b
No known key found for this signature in database GPG Key ID: 87CAE5FA46917CBB
  1. 9
      src/daemon.rs

9
src/daemon.rs

@ -272,8 +272,15 @@ impl Daemon {
&["method", "dir"],
),
};
let network_info = daemon.getnetworkinfo()?;
debug!("{:?}", network_info);
if network_info.version < 00_16_00_00 {
bail!(
"{} is not supported - please use bitcoind 0.16+",
network_info.subversion,
)
}
debug!("{:?}", daemon.getblockchaininfo()?);
debug!("{:?}", daemon.getnetworkinfo()?);
Ok(daemon)
}

Loading…
Cancel
Save