Skip to content

Commit

Permalink
Merge pull request ethereum-mining#1524 from ethereum-mining/NFC-Adap…
Browse files Browse the repository at this point in the history
…tAssertion

NFC: Correct an assertion condition.
  • Loading branch information
MariusVanDerWijden committed Aug 30, 2018
2 parents 1ef2b94 + c82521b commit 885626c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libapicore/ApiServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ Json::Value ApiConnection::getMinerStatHR()
runtime << toString(runningTime.count());
poolAddresses << m_farm.get_pool_addresses();

assert(p.minersHashes.size() == p.minerMonitors.size());
assert(p.minersHashes.size() == p.minerMonitors.size() || p.minerMonitors.size() == 0);
assert(p.minersHashes.size() == p.miningIsPaused.size());

for (unsigned gpuIndex = 0; gpuIndex < p.minersHashes.size(); gpuIndex++)
Expand Down

0 comments on commit 885626c

Please sign in to comment.