Browse Source
Expand on reasons for mining being paused
pull/4/head
Jack Grigg
7 years ago
No known key found for this signature in database
GPG Key ID: 6A6914DAFBEA00DA
1 changed files with
12 additions and
1 deletions
-
src/metrics.cpp
|
|
@ -203,7 +203,18 @@ int printMiningStatus(bool mining) |
|
|
|
std::cout << strprintf(_("You are mining with the %s solver on %d threads."), |
|
|
|
GetArg("-equihashsolver", "default"), nThreads) << std::endl; |
|
|
|
} else { |
|
|
|
std::cout << _("Mining is paused.") << std::endl; |
|
|
|
bool fvNodesEmpty; |
|
|
|
{ |
|
|
|
LOCK(cs_vNodes); |
|
|
|
fvNodesEmpty = vNodes.empty(); |
|
|
|
} |
|
|
|
if (fvNodesEmpty) { |
|
|
|
std::cout << _("Mining is paused while waiting for connections.") << std::endl; |
|
|
|
} else if (IsInitialBlockDownload()) { |
|
|
|
std::cout << _("Mining is paused while downloading blocks.") << std::endl; |
|
|
|
} else { |
|
|
|
std::cout << _("Mining is paused (a JoinSplit may be in progress).") << std::endl; |
|
|
|
} |
|
|
|
} |
|
|
|
lines++; |
|
|
|
} else { |
|
|
|