Browse Source

Use pindexBestHeader instead of setBlockIndexCandidates for NotifyHeaderTip()

0.14
Jonas Schnelli 8 years ago
parent
commit
0a261b63fd
No known key found for this signature in database
GPG Key ID: 29D4BCB6416F53EC
  1. 5
      src/main.cpp

5
src/main.cpp

@ -3006,9 +3006,8 @@ static void NotifyHeaderTip() { @@ -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…
Cancel
Save