From d07ac4fbd34969a1828b639090b1e6732fc7c251 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Fri, 22 Sep 2017 04:54:14 +0300 Subject: [PATCH] fix: update DIP0001 related stuff even in IBD (#1652) --- src/dsnotificationinterface.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/dsnotificationinterface.cpp b/src/dsnotificationinterface.cpp index b9da0cf2b..ee1bd29df 100644 --- a/src/dsnotificationinterface.cpp +++ b/src/dsnotificationinterface.cpp @@ -34,15 +34,6 @@ void CDSNotificationInterface::UpdatedBlockTip(const CBlockIndex *pindexNew, con masternodeSync.UpdatedBlockTip(pindexNew, fInitialDownload, connman); - if (fInitialDownload) // In IBD - return; - - mnodeman.UpdatedBlockTip(pindexNew); - privateSendClient.UpdatedBlockTip(pindexNew); - instantsend.UpdatedBlockTip(pindexNew); - mnpayments.UpdatedBlockTip(pindexNew, connman); - governance.UpdatedBlockTip(pindexNew, connman); - // DIP0001 updates bool fDIP0001ActiveAtTipTmp = fDIP0001ActiveAtTip; @@ -63,6 +54,15 @@ void CDSNotificationInterface::UpdatedBlockTip(const CBlockIndex *pindexNew, con CWallet::fallbackFee = CFeeRate(fDIP0001ActiveAtTip ? DEFAULT_DIP0001_FALLBACK_FEE : DEFAULT_LEGACY_FALLBACK_FEE); } } + + if (fInitialDownload || !masternodeSync.IsBlockchainSynced()) + return; + + mnodeman.UpdatedBlockTip(pindexNew); + privateSendClient.UpdatedBlockTip(pindexNew); + instantsend.UpdatedBlockTip(pindexNew); + mnpayments.UpdatedBlockTip(pindexNew, connman); + governance.UpdatedBlockTip(pindexNew, connman); } void CDSNotificationInterface::SyncTransaction(const CTransaction &tx, const CBlock *pblock)