Browse Source

typo fixed

cl-refactor
arkpar 10 years ago
parent
commit
2110876e2e
  1. 2
      libethcore/Common.h
  2. 4
      libethereum/BlockChainSync.cpp
  3. 2
      libethereum/BlockQueue.cpp

2
libethcore/Common.h

@ -101,7 +101,7 @@ enum class ImportResult
Success = 0,
UnknownParent,
FutureTimeKnown,
FutureTimeUnkwnown,
FutureTimeUnknown,
AlreadyInChain,
AlreadyKnown,
Malformed,

4
libethereum/BlockChainSync.cpp

@ -186,7 +186,7 @@ void BlockChainSync::onPeerBlocks(EthereumPeer* _peer, RLP const& _r)
got++;
break;
case ImportResult::FutureTimeUnkwnown:
case ImportResult::FutureTimeUnknown:
future++; //Fall through
case ImportResult::UnknownParent:
@ -270,7 +270,7 @@ void BlockChainSync::onPeerNewBlock(EthereumPeer* _peer, RLP const& _r)
case ImportResult::AlreadyKnown:
break;
case ImportResult::FutureTimeUnkwnown:
case ImportResult::FutureTimeUnknown:
case ImportResult::UnknownParent:
clog(NetMessageSummary) << "Received block with no known parent. Resyncing...";
resetSyncFor(_peer, h, _r[1].toInt<u256>());

2
libethereum/BlockQueue.cpp

@ -233,7 +233,7 @@ ImportResult BlockQueue::import(bytesConstRef _block, BlockChain const& _bc, boo
m_unknownCount++;
m_difficulty += bi.difficulty;
bool unknown = !m_readySet.count(bi.parentHash) && !m_drainingSet.count(bi.parentHash) && !_bc.isKnown(bi.parentHash);
return unknown ? ImportResult::FutureTimeUnkwnown : ImportResult::FutureTimeKnown;
return unknown ? ImportResult::FutureTimeUnknown : ImportResult::FutureTimeKnown;
}
else
{

Loading…
Cancel
Save