aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2016-09-30 17:40:03 -0400
committerMatt Corallo <git@bluematt.me>2016-10-04 12:35:07 -0400
commit87e7d7280739cccfabaffbbfbbbcfa21e943da3a (patch)
tree07cbce45120a9da86345716213c2203b65e250d8 /src/main.cpp
parenta7e5cbb209d4aeb8c2e4c58c92bf214759998056 (diff)
downloadbitcoin-87e7d7280739cccfabaffbbfbbbcfa21e943da3a.tar.xz
Make validationinterface.UpdatedBlockTip more verbose
In anticipation of making all the callbacks out of block processing flow through it. Note that vHashes will always have something in it since pindexFork != pindexNewTip.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp
index ab67219714..37a0a2f30d 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -3099,11 +3099,9 @@ bool ActivateBestChain(CValidationState &state, const CChainParams& chainparams,
}
});
}
- // Notify external listeners about the new tip.
- if (!vHashes.empty()) {
- GetMainSignals().UpdatedBlockTip(pindexNewTip);
- }
}
+ // Notify external listeners about the new tip.
+ GetMainSignals().UpdatedBlockTip(pindexNewTip, pindexFork, fInitialDownload);
}
} while (pindexNewTip != pindexMostWork);
CheckBlockIndex(chainparams.GetConsensus());