From 0a0ec219d79db1d26d2d37ee0103f07e45fc796a Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 23 Mar 2017 19:44:40 +0200 Subject: [PATCH] Test --- src/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index b7c48332a..1bcde7710 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -382,12 +382,13 @@ void UpdateBlockAvailability(NodeId nodeid, const uint256 &hash) { ProcessBlockAvailability(nodeid); - BlockMap::iterator it = mapBlockIndex.find(hash); + /*BlockMap::iterator it = mapBlockIndex.find(hash); if (it != mapBlockIndex.end() && it->second->nChainWork > 0) { // An actually better block was announced. if (state->pindexBestKnownBlock == NULL || it->second->nChainWork >= state->pindexBestKnownBlock->nChainWork) state->pindexBestKnownBlock = it->second; - } else { + } else*/ + { // An unknown block was announced; just assume that the latest one is the best one. state->hashLastUnknownBlock = hash; }