Browse Source

style

cl-refactor
arkpar 10 years ago
parent
commit
7ba71da280
  1. 8
      libethereum/BlockQueue.cpp
  2. 2
      libethereum/BlockQueue.h

8
libethereum/BlockQueue.cpp

@ -127,7 +127,7 @@ void BlockQueue::verifierBody()
}
cwarn << "BlockQueue missing our job: was there a GM?";
OK1:;
drainVerified();
drainVerified_WITH_BOTH_LOCKS();
continue;
}
@ -147,7 +147,7 @@ void BlockQueue::verifierBody()
else
m_verified.emplace_back(move(res));
drainVerified();
drainVerified_WITH_BOTH_LOCKS();
ready = true;
}
else
@ -167,9 +167,9 @@ void BlockQueue::verifierBody()
}
}
void BlockQueue::drainVerified()
void BlockQueue::drainVerified_WITH_BOTH_LOCKS()
{
while (m_verifying.size() && !m_verifying.front().blockData.empty())
while (!m_verifying.empty() && !m_verifying.front().blockData.empty())
{
if (m_knownBad.count(m_verifying.front().verified.info.parentHash))
{

2
libethereum/BlockQueue.h

@ -134,7 +134,7 @@ private:
bool invariants() const override;
void verifierBody();
void drainVerified();
void drainVerified_WITH_BOTH_LOCKS();
void collectUnknownBad(h256 const& _bad);
void updateBad(h256 const& _bad);

Loading…
Cancel
Save