diff options
| author | Matt Corallo <[email protected]> | 2016-09-30 17:40:03 -0400 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2016-10-04 12:35:07 -0400 |
| commit | 87e7d7280739cccfabaffbbfbbbcfa21e943da3a (patch) | |
| tree | 07cbce45120a9da86345716213c2203b65e250d8 /src/main.cpp | |
| parent | Merge #8856: Globals: Decouple GetConfigFile and ReadConfigFile from global m... (diff) | |
| download | discoin-87e7d7280739cccfabaffbbfbbbcfa21e943da3a.tar.xz discoin-87e7d7280739cccfabaffbbfbbbcfa21e943da3a.zip | |
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.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp index ab6721971..37a0a2f30 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()); |