From 5aa4223f1ef832f8909231efe94cd972560724f3 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 24 Mar 2017 06:03:46 +0200 Subject: [PATCH] Test --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index c34abde92..ce4ba6967 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -384,7 +384,7 @@ void UpdateBlockAvailability(NodeId nodeid, const uint256 &hash) { ProcessBlockAvailability(nodeid); BlockMap::iterator it = mapBlockIndex.find(hash); - if (it->second != 0 && it != mapBlockIndex.end() && it->second->nChainWork > 0) { + if (it->size() != 0 && 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;