aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorJonas Schnelli <[email protected]>2015-11-26 15:48:26 +0100
committerJonas Schnelli <[email protected]>2015-11-30 08:50:59 +0100
commit012fc91511b153ce3fd3e9fb7bbed8f85fb1690e (patch)
tree1360a783f7f2cf341b035822558aa86d705b8335 /src/main.cpp
parentMerge pull request #7129 (diff)
downloaddiscoin-012fc91511b153ce3fd3e9fb7bbed8f85fb1690e.tar.xz
discoin-012fc91511b153ce3fd3e9fb7bbed8f85fb1690e.zip
NotifyBlockTip signal: switch from hash (uint256) to CBlockIndex*
- also adds a boolean for indication if the tip update was happening during initial sync - emit notification also during initial sync
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 31913956b..b41c1ad2e 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -2636,9 +2636,11 @@ bool ActivateBestChain(CValidationState &state, const CChainParams& chainparams,
// Notify external listeners about the new tip.
if (!vHashes.empty()) {
GetMainSignals().UpdatedBlockTip(pindexNewTip);
- uiInterface.NotifyBlockTip(vHashes.front());
}
}
+ if (!vHashes.empty()) {
+ uiInterface.NotifyBlockTip(fInitialDownload, pindexNewTip);
+ }
} while(pindexMostWork != chainActive.Tip());
CheckBlockIndex(chainparams.GetConsensus());