mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 03:21:08 +03:00
Better panic message in sync in case of no peers.
This commit is contained in:
parent
256283966a
commit
addaadf711
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ impl Syncer {
|
||||||
let tip = self.chain.get_header_head()?;
|
let tip = self.chain.get_header_head()?;
|
||||||
|
|
||||||
// TODO do something better (like trying to get more) if we lose peers
|
// TODO do something better (like trying to get more) if we lose peers
|
||||||
let peer = self.p2p.most_work_peer().unwrap();
|
let peer = self.p2p.most_work_peer().expect("No peers available for sync.");
|
||||||
debug!(
|
debug!(
|
||||||
LOGGER,
|
LOGGER,
|
||||||
"Sync: peer {} vs us {}",
|
"Sync: peer {} vs us {}",
|
||||||
|
|
Loading…
Reference in a new issue