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, Success = 0,
UnknownParent, UnknownParent,
FutureTimeKnown, FutureTimeKnown,
FutureTimeUnkwnown, FutureTimeUnknown,
AlreadyInChain, AlreadyInChain,
AlreadyKnown, AlreadyKnown,
Malformed, Malformed,

4
libethereum/BlockChainSync.cpp

@ -186,7 +186,7 @@ void BlockChainSync::onPeerBlocks(EthereumPeer* _peer, RLP const& _r)
got++; got++;
break; break;
case ImportResult::FutureTimeUnkwnown: case ImportResult::FutureTimeUnknown:
future++; //Fall through future++; //Fall through
case ImportResult::UnknownParent: case ImportResult::UnknownParent:
@ -270,7 +270,7 @@ void BlockChainSync::onPeerNewBlock(EthereumPeer* _peer, RLP const& _r)
case ImportResult::AlreadyKnown: case ImportResult::AlreadyKnown:
break; break;
case ImportResult::FutureTimeUnkwnown: case ImportResult::FutureTimeUnknown:
case ImportResult::UnknownParent: case ImportResult::UnknownParent:
clog(NetMessageSummary) << "Received block with no known parent. Resyncing..."; clog(NetMessageSummary) << "Received block with no known parent. Resyncing...";
resetSyncFor(_peer, h, _r[1].toInt<u256>()); 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_unknownCount++;
m_difficulty += bi.difficulty; m_difficulty += bi.difficulty;
bool unknown = !m_readySet.count(bi.parentHash) && !m_drainingSet.count(bi.parentHash) && !_bc.isKnown(bi.parentHash); 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 else
{ {

Loading…
Cancel
Save