Fix bug: nCachedBlockHeight was not updated on start (#1673)

in submodules if no new blocks were received since previous shutdown.
This was breaking some sync logic e.g. for payment votes.
This commit is contained in:
UdjinM6 2017-10-09 21:25:24 +03:00 committed by GitHub
parent 296cfd2efa
commit 52cd4d40d8

View File

@ -55,7 +55,7 @@ void CDSNotificationInterface::UpdatedBlockTip(const CBlockIndex *pindexNew, con
} }
} }
if (fInitialDownload || !masternodeSync.IsBlockchainSynced()) if (fInitialDownload)
return; return;
mnodeman.UpdatedBlockTip(pindexNew); mnodeman.UpdatedBlockTip(pindexNew);