diff options
| author | Jonas Schnelli <[email protected]> | 2016-10-20 18:53:05 +0200 |
|---|---|---|
| committer | Jonas Schnelli <[email protected]> | 2016-10-20 19:02:48 +0200 |
| commit | 0a261b63fd4f1b07431f8a65762ef9f1ef1c11c8 (patch) | |
| tree | 01b3883c657923616d1d80a6d2d8a68cc16954e7 /src/main.cpp | |
| parent | Merge #7551: Add importmulti RPC call (diff) | |
| download | discoin-0a261b63fd4f1b07431f8a65762ef9f1ef1c11c8.tar.xz discoin-0a261b63fd4f1b07431f8a65762ef9f1ef1c11c8.zip | |
Use pindexBestHeader instead of setBlockIndexCandidates for NotifyHeaderTip()
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp index 50158b468..8c95f36db 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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(); |