@@ -353,14 +353,14 @@ static void BlockTipChanged(ClientModel *clientmodel, bool initialSync, const CB
353353 }
354354}
355355
356- static void NotifyMasternodeListChanged (ClientModel *clientmodel)
356+ static void NotifyMasternodeListChanged (ClientModel *clientmodel, const CDeterministicMNList& newList )
357357{
358358 static int64_t nLastMasternodeUpdateNotification = 0 ;
359359 int64_t now = GetTimeMillis ();
360360 // if we are in-sync, update the UI regardless of last update time
361361 // no need to refresh masternode list/stats as often as blocks etc.
362362 if (masternodeSync.IsBlockchainSynced () || now - nLastMasternodeUpdateNotification > MODEL_UPDATE_DELAY*4 *5 ) {
363- clientmodel->refreshMasternodeList ( );
363+ clientmodel->setMasternodeList (newList );
364364 nLastMasternodeUpdateNotification = now;
365365 }
366366}
@@ -381,7 +381,7 @@ void ClientModel::subscribeToCoreSignals()
381381 uiInterface.BannedListChanged .connect (boost::bind (BannedListChanged, this ));
382382 uiInterface.NotifyBlockTip .connect (boost::bind (BlockTipChanged, this , _1, _2, false ));
383383 uiInterface.NotifyHeaderTip .connect (boost::bind (BlockTipChanged, this , _1, _2, true ));
384- uiInterface.NotifyMasternodeListChanged .connect (boost::bind (NotifyMasternodeListChanged, this ));
384+ uiInterface.NotifyMasternodeListChanged .connect (boost::bind (NotifyMasternodeListChanged, this , _1 ));
385385 uiInterface.NotifyAdditionalDataSyncProgressChanged .connect (boost::bind (NotifyAdditionalDataSyncProgressChanged, this , _1));
386386}
387387
@@ -395,6 +395,6 @@ void ClientModel::unsubscribeFromCoreSignals()
395395 uiInterface.BannedListChanged .disconnect (boost::bind (BannedListChanged, this ));
396396 uiInterface.NotifyBlockTip .disconnect (boost::bind (BlockTipChanged, this , _1, _2, false ));
397397 uiInterface.NotifyHeaderTip .disconnect (boost::bind (BlockTipChanged, this , _1, _2, true ));
398- uiInterface.NotifyMasternodeListChanged .disconnect (boost::bind (NotifyMasternodeListChanged, this ));
398+ uiInterface.NotifyMasternodeListChanged .disconnect (boost::bind (NotifyMasternodeListChanged, this , _1 ));
399399 uiInterface.NotifyAdditionalDataSyncProgressChanged .disconnect (boost::bind (NotifyAdditionalDataSyncProgressChanged, this , _1));
400400}
0 commit comments