@@ -364,14 +364,14 @@ static void BlockTipChanged(ClientModel *clientmodel, bool initialSync, const CB
364364 }
365365}
366366
367- static void NotifyMasternodeListChanged (ClientModel *clientmodel)
367+ static void NotifyMasternodeListChanged (ClientModel *clientmodel, const CDeterministicMNList& newList )
368368{
369369 static int64_t nLastMasternodeUpdateNotification = 0 ;
370370 int64_t now = GetTimeMillis ();
371371 // if we are in-sync, update the UI regardless of last update time
372372 // no need to refresh masternode list/stats as often as blocks etc.
373373 if (masternodeSync.IsBlockchainSynced () || now - nLastMasternodeUpdateNotification > MODEL_UPDATE_DELAY*4 *5 ) {
374- clientmodel->refreshMasternodeList ( );
374+ clientmodel->setMasternodeList (newList );
375375 nLastMasternodeUpdateNotification = now;
376376 }
377377}
@@ -392,7 +392,7 @@ void ClientModel::subscribeToCoreSignals()
392392 uiInterface.BannedListChanged .connect (boost::bind (BannedListChanged, this ));
393393 uiInterface.NotifyBlockTip .connect (boost::bind (BlockTipChanged, this , _1, _2, false ));
394394 uiInterface.NotifyHeaderTip .connect (boost::bind (BlockTipChanged, this , _1, _2, true ));
395- uiInterface.NotifyMasternodeListChanged .connect (boost::bind (NotifyMasternodeListChanged, this ));
395+ uiInterface.NotifyMasternodeListChanged .connect (boost::bind (NotifyMasternodeListChanged, this , _1 ));
396396 uiInterface.NotifyAdditionalDataSyncProgressChanged .connect (boost::bind (NotifyAdditionalDataSyncProgressChanged, this , _1));
397397}
398398
@@ -406,6 +406,6 @@ void ClientModel::unsubscribeFromCoreSignals()
406406 uiInterface.BannedListChanged .disconnect (boost::bind (BannedListChanged, this ));
407407 uiInterface.NotifyBlockTip .disconnect (boost::bind (BlockTipChanged, this , _1, _2, false ));
408408 uiInterface.NotifyHeaderTip .disconnect (boost::bind (BlockTipChanged, this , _1, _2, true ));
409- uiInterface.NotifyMasternodeListChanged .disconnect (boost::bind (NotifyMasternodeListChanged, this ));
409+ uiInterface.NotifyMasternodeListChanged .disconnect (boost::bind (NotifyMasternodeListChanged, this , _1 ));
410410 uiInterface.NotifyAdditionalDataSyncProgressChanged .disconnect (boost::bind (NotifyAdditionalDataSyncProgressChanged, this , _1));
411411}
0 commit comments