1
0
mirror of https://github.com/romanz/electrs.git synced 2024-11-19 01:43:29 +01:00

Log daemon information with INFO verbosity

This commit is contained in:
Roman Zeyde 2018-08-07 12:10:02 +03:00
parent 1c75b55b71
commit b300a55cb4
No known key found for this signature in database
GPG Key ID: 87CAE5FA46917CBB

View File

@ -276,7 +276,7 @@ impl Daemon {
),
};
let network_info = daemon.getnetworkinfo()?;
debug!("{:?}", network_info);
info!("{:?}", network_info);
if network_info.version < 00_16_00_00 {
bail!(
"{} is not supported - please use bitcoind 0.16+",
@ -284,7 +284,7 @@ impl Daemon {
)
}
let blockchain_info = daemon.getblockchaininfo()?;
debug!("{:?}", blockchain_info);
info!("{:?}", blockchain_info);
if blockchain_info.initialblockdownload == true {
bail!(ErrorKind::Connection(
"wait until bitcoin is synced (i.e. initialblockdownload = false)".to_owned()