Browse Source

Hot fix/workaround for assert failure.

cl-refactor
Gav Wood 10 years ago
parent
commit
fd3cfa79cd
  1. 4
      libethereum/EthereumPeer.cpp

4
libethereum/EthereumPeer.cpp

@ -152,8 +152,10 @@ void EthereumPeer::requestHashes(u256 _number, unsigned _count)
void EthereumPeer::requestHashes(h256 const& _lastHash)
{
if (m_asking != Asking::Nothing)
{
clog(NetWarn) << "Asking hashes while requesting " << (m_asking == Asking::Nothing ? "nothing" : m_asking == Asking::State ? "state" : m_asking == Asking::Hashes ? "hashes" : m_asking == Asking::Blocks ? "blocks" : "?");
assert(m_asking == Asking::Nothing);
// TODO: fix.
}
setAsking(Asking::Hashes);
RLPStream s;
prep(s, GetBlockHashesPacket, 2) << _lastHash << c_maxHashesAsk;

Loading…
Cancel
Save