Use pindexBestHeader instead of setBlockIndexCandidates for NotifyHeaderTip()
This commit is contained in:
parent
f2d705629b
commit
0a261b63fd
1 changed files with 2 additions and 3 deletions
|
@ -3006,9 +3006,8 @@ static void NotifyHeaderTip() {
|
|||
CBlockIndex* pindexHeader = NULL;
|
||||
{
|
||||
LOCK(cs_main);
|
||||
if (!setBlockIndexCandidates.empty()) {
|
||||
pindexHeader = *setBlockIndexCandidates.rbegin();
|
||||
}
|
||||
pindexHeader = pindexBestHeader;
|
||||
|
||||
if (pindexHeader != pindexHeaderOld) {
|
||||
fNotify = true;
|
||||
fInitialBlockDownload = IsInitialBlockDownload();
|
||||
|
|
Loading…
Add table
Reference in a new issue