mirror of
https://github.com/romanz/electrs.git
synced 2025-02-24 23:08:39 +01:00
parent
3041e89cd2
commit
492d6aa275
1 changed files with 7 additions and 1 deletions
|
@ -59,7 +59,13 @@ fn tip_receiver(config: &Config) -> Result<Receiver<BlockHash>> {
|
|||
Ok(_) | Err(TrySendError::Full(_)) => (),
|
||||
Err(TrySendError::Disconnected(_)) => bail!("tip receiver disconnected"),
|
||||
}
|
||||
rpc.wait_for_new_block(duration)?;
|
||||
if let Err(err) = rpc.wait_for_new_block(duration) {
|
||||
warn!(
|
||||
"waiting {:.1}s for new block failed: {}",
|
||||
duration as f64 / 1e3,
|
||||
err
|
||||
);
|
||||
}
|
||||
});
|
||||
Ok(tip_rx)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue