From 3d8d574eacfab05c4f09f6a7925fb31a9eb16f78 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 24 Mar 2017 06:06:45 +0200 Subject: [PATCH] Test --- src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index f6c30f2a7..812095d0e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -381,14 +381,14 @@ void UpdateBlockAvailability(NodeId nodeid, const uint256 &hash) { CNodeState *state = State(nodeid); assert(state != NULL); - ProcessBlockAvailability(nodeid); + /*ProcessBlockAvailability(nodeid); BlockMap::iterator it = mapBlockIndex.find(hash); - if (it->size() != 0 && it != mapBlockIndex.end() && it->second->nChainWork > 0) { + 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;