|
|
@ -3006,9 +3006,8 @@ static void NotifyHeaderTip() { |
|
|
|
CBlockIndex* pindexHeader = NULL; |
|
|
|
CBlockIndex* pindexHeader = NULL; |
|
|
|
{ |
|
|
|
{ |
|
|
|
LOCK(cs_main); |
|
|
|
LOCK(cs_main); |
|
|
|
if (!setBlockIndexCandidates.empty()) { |
|
|
|
pindexHeader = pindexBestHeader; |
|
|
|
pindexHeader = *setBlockIndexCandidates.rbegin(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (pindexHeader != pindexHeaderOld) { |
|
|
|
if (pindexHeader != pindexHeaderOld) { |
|
|
|
fNotify = true; |
|
|
|
fNotify = true; |
|
|
|
fInitialBlockDownload = IsInitialBlockDownload(); |
|
|
|
fInitialBlockDownload = IsInitialBlockDownload(); |
|
|
|