diff --git a/libethcore/Common.h b/libethcore/Common.h index 77ec9fa3b..060860a95 100644 --- a/libethcore/Common.h +++ b/libethcore/Common.h @@ -101,7 +101,7 @@ enum class ImportResult Success = 0, UnknownParent, FutureTimeKnown, - FutureTimeUnkwnown, + FutureTimeUnknown, AlreadyInChain, AlreadyKnown, Malformed, diff --git a/libethereum/BlockChainSync.cpp b/libethereum/BlockChainSync.cpp index bd0b10c7c..bcc7f72f3 100644 --- a/libethereum/BlockChainSync.cpp +++ b/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()); diff --git a/libethereum/BlockQueue.cpp b/libethereum/BlockQueue.cpp index f23c7ba52..394549076 100644 --- a/libethereum/BlockQueue.cpp +++ b/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 {