Skip to content

Commit a0c8c9f

Browse files
knstUdjinM6
andauthored
fix: possible assert call if nHeight in CDeterministicMNList is higher then Tip (#5590)
## Issue being fixed or feature implemented fix: possible assert call if nHeight in CDeterministicMNListDiff is higher than Tip Example of new log: ``` 2023-09-28T17:35:50Z GetProjectedMNPayeesAtChainTip WARNING pindex is nullptr due to height=914160 chain height=914159 ``` instead assert call: ``` ... #6 0x00007ffff7a33b86 in __assert_fail (assertion=0x55555783afd2 "pindex", file=0x5555577f2ed8 "llmq/utils.cpp", line=730, function=0x5555577f2448 "bool llmq::utils::IsMNRewardReallocationActive(const CBlockIndex*)") at ./assert/assert.c:101 #7 0x0000555555ab7daf in llmq::utils::IsMNRewardReallocationActive (pindex=<optimized out>) at llmq/utils.cpp:730 #8 0x00005555559458ad in CDeterministicMNList::GetProjectedMNPayees (this=this@entry=0x7fffffffc690, pindex=0x0, nCount=<optimized out>, nCount@entry=2147483647) at evo/deterministicmns.cpp:231 #9 0x000055555594614f in CDeterministicMNList::GetProjectedMNPayeesAtChainTip (this=this@entry=0x7fffffffc690, nCount=nCount@entry=2147483647) at evo/deterministicmns.cpp:216 #10 0x00005555558c9f51 in MasternodeList::updateDIP3List (this=this@entry=0x55555908cfd0) at qt/masternodelist.cpp:194 #11 0x00005555558ca9a0 in MasternodeList::updateDIP3ListScheduled (this=0x55555908cfd0) at qt/masternodelist.cpp:157 #12 0x000055555684a60f in void doActivate<false>(QObject*, int, void**) () #13 0x00005555568525b1 in QTimer::timerEvent(QTimerEvent*) () #14 0x0000555556844ce5 in QObject::event(QEvent*) () #15 0x0000555556ac3252 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () #16 0x000055555681e6b8 in QCoreApplication::sendEvent(QObject*, QEvent*) () #17 0x000055555686de2a in QTimerInfoList::activateTimers() () #18 0x000055555686be84 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () #19 0x00005555569bf8a2 in QXcbUnixEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () #20 0x000055555681caf6 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () #21 0x0000555556825f8a in QCoreApplication::exec() () ... ``` ## What was done? ClientModel returns now a pair: MNList and CBlockIndex; so, we always know the which one has been used even if current chain is switched. ## How Has This Been Tested? Run on my localhost from `c034ff0c2606142ba3e8894bc74f693b87374e5c` - aborted with backtrace like above. With both of commit - no assert more. ## Breaking Changes N/A ## Checklist: - [x] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have added or updated relevant unit/integration/functional/e2e tests - [ ] I have made corresponding changes to the documentation - [x] I have assigned this pull request to a milestone --------- Co-authored-by: UdjinM6 <[email protected]>
1 parent 3e732a9 commit a0c8c9f

13 files changed

+70
-54
lines changed

src/evo/deterministicmns.cpp

+21-24
Original file line numberDiff line numberDiff line change
@@ -214,38 +214,35 @@ CDeterministicMNCPtr CDeterministicMNList::GetMNPayee(const CBlockIndex* pIndex)
214214
return best;
215215
}
216216

217-
std::vector<CDeterministicMNCPtr> CDeterministicMNList::GetProjectedMNPayeesAtChainTip(int nCount) const
218-
{
219-
return GetProjectedMNPayees(::ChainActive()[nHeight], nCount);
220-
}
221-
222217
std::vector<CDeterministicMNCPtr> CDeterministicMNList::GetProjectedMNPayees(const CBlockIndex* const pindex, int nCount) const
223218
{
224219
if (nCount < 0 ) {
225220
return {};
226221
}
227-
nCount = std::min(nCount, int(GetValidWeightedMNsCount()));
222+
const auto weighted_count = GetValidWeightedMNsCount();
223+
nCount = std::min(nCount, int(weighted_count));
228224

229225
std::vector<CDeterministicMNCPtr> result;
230-
result.reserve(nCount);
226+
result.reserve(weighted_count);
231227

232-
auto remaining_evo_payments = 0;
233-
CDeterministicMNCPtr evo_to_be_skipped = nullptr;
234-
bool isMNRewardReallocation = llmq::utils::IsMNRewardReallocationActive(pindex);
235-
ForEachMNShared(true, [&](const CDeterministicMNCPtr& dmn) {
236-
if (dmn->pdmnState->nLastPaidHeight == nHeight) {
237-
// We found the last MN Payee.
238-
// If the last payee is an EvoNode, we need to check its consecutive payments and pay him again if needed
239-
if (!isMNRewardReallocation && dmn->nType == MnType::Evo && dmn->pdmnState->nConsecutivePayments < dmn_types::Evo.voting_weight) {
240-
remaining_evo_payments = dmn_types::Evo.voting_weight - dmn->pdmnState->nConsecutivePayments;
241-
for ([[maybe_unused]] auto _ : irange::range(remaining_evo_payments)) {
242-
result.emplace_back(dmn);
243-
evo_to_be_skipped = dmn;
228+
int remaining_evo_payments{0};
229+
CDeterministicMNCPtr evo_to_be_skipped{nullptr};
230+
const bool isMNRewardReallocation = llmq::utils::IsMNRewardReallocationActive(pindex);
231+
if (!isMNRewardReallocation) {
232+
ForEachMNShared(true, [&](const CDeterministicMNCPtr& dmn) {
233+
if (dmn->pdmnState->nLastPaidHeight == nHeight) {
234+
// We found the last MN Payee.
235+
// If the last payee is an EvoNode, we need to check its consecutive payments and pay him again if needed
236+
if (dmn->nType == MnType::Evo && dmn->pdmnState->nConsecutivePayments < dmn_types::Evo.voting_weight) {
237+
remaining_evo_payments = dmn_types::Evo.voting_weight - dmn->pdmnState->nConsecutivePayments;
238+
for ([[maybe_unused]] auto _ : irange::range(remaining_evo_payments)) {
239+
result.emplace_back(dmn);
240+
evo_to_be_skipped = dmn;
241+
}
244242
}
245243
}
246-
}
247-
return;
248-
});
244+
});
245+
}
249246

250247
ForEachMNShared(true, [&](const CDeterministicMNCPtr& dmn) {
251248
if (dmn == evo_to_be_skipped) return;
@@ -647,7 +644,7 @@ bool CDeterministicMNManager::ProcessBlock(const CBlock& block, const CBlockInde
647644
// Don't hold cs while calling signals
648645
if (diff.HasChanges()) {
649646
GetMainSignals().NotifyMasternodeListChanged(false, oldList, diff, connman);
650-
uiInterface.NotifyMasternodeListChanged(newList);
647+
uiInterface.NotifyMasternodeListChanged(newList, pindex);
651648
}
652649

653650
if (nHeight == consensusParams.DIP0003EnforcementHeight) {
@@ -688,7 +685,7 @@ bool CDeterministicMNManager::UndoBlock(const CBlockIndex* pindex)
688685
if (diff.HasChanges()) {
689686
auto inversedDiff = curList.BuildDiff(prevList);
690687
GetMainSignals().NotifyMasternodeListChanged(true, curList, inversedDiff, connman);
691-
uiInterface.NotifyMasternodeListChanged(prevList);
688+
uiInterface.NotifyMasternodeListChanged(prevList, pindex->pprev);
692689
}
693690

694691
const auto& consensusParams = Params().GetConsensus();

src/evo/deterministicmns.h

-1
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,6 @@ class CDeterministicMNList
348348
* @return
349349
*/
350350
[[nodiscard]] std::vector<CDeterministicMNCPtr> GetProjectedMNPayees(const CBlockIndex* const pindex, int nCount = std::numeric_limits<int>::max()) const;
351-
[[nodiscard]] std::vector<CDeterministicMNCPtr> GetProjectedMNPayeesAtChainTip(int nCount = std::numeric_limits<int>::max()) const;
352351

353352
/**
354353
* Calculate a quorum based on the modifier. The resulting list is deterministically sorted by score

src/governance/governance.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -676,8 +676,10 @@ void CGovernanceManager::CreateGovernanceTrigger(const CSuperblock& sb, CConnman
676676
if (identical_sb == nullptr) {
677677
// Nobody submitted a trigger we'd like to see,
678678
// so let's do it but only if we are the payee
679-
auto mnList = deterministicMNManager->GetListAtChainTip();
680-
auto mn_payees = mnList.GetProjectedMNPayeesAtChainTip();
679+
680+
const CBlockIndex *tip = WITH_LOCK(::cs_main, return ::ChainActive().Tip());
681+
auto mnList = deterministicMNManager->GetListForBlock(tip);
682+
auto mn_payees = mnList.GetProjectedMNPayees(tip);
681683
if (mn_payees.empty()) return;
682684
{
683685
LOCK(activeMasternodeInfoCs);

src/interfaces/node.h

+4-2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include <vector>
2222

2323
class BanMan;
24+
class CBlockIndex;
2425
class CCoinControl;
2526
class CDeterministicMNList;
2627
class CFeeRate;
@@ -45,7 +46,7 @@ class EVO
4546
{
4647
public:
4748
virtual ~EVO() {}
48-
virtual CDeterministicMNList getListAtChainTip() = 0;
49+
virtual std::pair<CDeterministicMNList, const CBlockIndex*> getListAtChainTip() = 0;
4950
};
5051

5152
//! Interface for the src/governance part of a dash node (dashd process).
@@ -355,7 +356,8 @@ class Node
355356

356357
//! Register handler for masternode list update messages.
357358
using NotifyMasternodeListChangedFn =
358-
std::function<void(const CDeterministicMNList& newList)>;
359+
std::function<void(const CDeterministicMNList& newList,
360+
const CBlockIndex* pindex)>;
359361
virtual std::unique_ptr<Handler> handleNotifyMasternodeListChanged(NotifyMasternodeListChangedFn fn) = 0;
360362

361363
//! Register handler for additional data sync progress update messages.

src/node/interfaces.cpp

+9-4
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,14 @@ namespace {
7979
class EVOImpl : public EVO
8080
{
8181
public:
82-
CDeterministicMNList getListAtChainTip() override
82+
std::pair<CDeterministicMNList, const CBlockIndex*> getListAtChainTip() override
8383
{
84-
return deterministicMNManager == nullptr ? CDeterministicMNList() : deterministicMNManager->GetListAtChainTip();
84+
const CBlockIndex *tip = WITH_LOCK(::cs_main, return ::ChainActive().Tip());
85+
CDeterministicMNList mnList{};
86+
if (tip != nullptr && deterministicMNManager != nullptr) {
87+
mnList = deterministicMNManager->GetListForBlock(tip);
88+
}
89+
return {std::move(mnList), tip};
8590
}
8691
};
8792

@@ -499,8 +504,8 @@ class NodeImpl : public Node
499504
std::unique_ptr<Handler> handleNotifyMasternodeListChanged(NotifyMasternodeListChangedFn fn) override
500505
{
501506
return MakeHandler(
502-
::uiInterface.NotifyMasternodeListChanged_connect([fn](const CDeterministicMNList& newList) {
503-
fn(newList);
507+
::uiInterface.NotifyMasternodeListChanged_connect([fn](const CDeterministicMNList& newList, const CBlockIndex* pindex) {
508+
fn(newList, pindex);
504509
}));
505510
}
506511
std::unique_ptr<Handler> handleNotifyAdditionalDataSyncProgressChanged(NotifyAdditionalDataSyncProgressChangedFn fn) override

src/qt/clientmodel.cpp

+10-7
Original file line numberDiff line numberDiff line change
@@ -82,26 +82,29 @@ int ClientModel::getNumConnections(unsigned int flags) const
8282
return m_node.getNodeCount(connections);
8383
}
8484

85-
void ClientModel::setMasternodeList(const CDeterministicMNList& mnList)
85+
void ClientModel::setMasternodeList(const CDeterministicMNList& mnList, const CBlockIndex* tip)
8686
{
8787
LOCK(cs_mnlinst);
8888
if (mnListCached->GetBlockHash() == mnList.GetBlockHash()) {
8989
return;
9090
}
9191
mnListCached = std::make_shared<CDeterministicMNList>(mnList);
92+
mnListTip = tip;
9293
Q_EMIT masternodeListChanged();
9394
}
9495

95-
CDeterministicMNList ClientModel::getMasternodeList() const
96+
std::pair<CDeterministicMNList, const CBlockIndex*> ClientModel::getMasternodeList() const
9697
{
9798
LOCK(cs_mnlinst);
98-
return *mnListCached;
99+
return {*mnListCached, mnListTip};
99100
}
100101

101102
void ClientModel::refreshMasternodeList()
102103
{
104+
auto [mnList, tip] = m_node.evo().getListAtChainTip();
105+
103106
LOCK(cs_mnlinst);
104-
setMasternodeList(m_node.evo().getListAtChainTip());
107+
setMasternodeList(mnList, tip);
105108
}
106109

107110
int ClientModel::getHeaderTipHeight() const
@@ -332,9 +335,9 @@ static void NotifyChainLock(ClientModel *clientmodel, const std::string& bestCha
332335
assert(invoked);
333336
}
334337

335-
static void NotifyMasternodeListChanged(ClientModel *clientmodel, const CDeterministicMNList& newList)
338+
static void NotifyMasternodeListChanged(ClientModel *clientmodel, const CDeterministicMNList& newList, const CBlockIndex* pindex)
336339
{
337-
clientmodel->setMasternodeList(newList);
340+
clientmodel->setMasternodeList(newList, pindex);
338341
}
339342

340343
static void NotifyAdditionalDataSyncProgressChanged(ClientModel *clientmodel, double nSyncProgress)
@@ -355,7 +358,7 @@ void ClientModel::subscribeToCoreSignals()
355358
m_handler_notify_block_tip = m_node.handleNotifyBlockTip(std::bind(BlockTipChanged, this, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, false));
356359
m_handler_notify_chainlock = m_node.handleNotifyChainLock(std::bind(NotifyChainLock, this, std::placeholders::_1, std::placeholders::_2));
357360
m_handler_notify_header_tip = m_node.handleNotifyHeaderTip(std::bind(BlockTipChanged, this, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, true));
358-
m_handler_notify_masternodelist_changed = m_node.handleNotifyMasternodeListChanged(std::bind(NotifyMasternodeListChanged, this, std::placeholders::_1));
361+
m_handler_notify_masternodelist_changed = m_node.handleNotifyMasternodeListChanged(std::bind(NotifyMasternodeListChanged, this, std::placeholders::_1, std::placeholders::_2));
359362
m_handler_notify_additional_data_sync_progess_changed = m_node.handleNotifyAdditionalDataSyncProgressChanged(std::bind(NotifyAdditionalDataSyncProgressChanged, this, std::placeholders::_1));
360363
}
361364

src/qt/clientmodel.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ class ClientModel : public QObject
6767
int getHeaderTipHeight() const;
6868
int64_t getHeaderTipTime() const;
6969

70-
void setMasternodeList(const CDeterministicMNList& mnList);
71-
CDeterministicMNList getMasternodeList() const;
70+
void setMasternodeList(const CDeterministicMNList& mnList, const CBlockIndex* tip);
71+
std::pair<CDeterministicMNList, const CBlockIndex*> getMasternodeList() const;
7272
void refreshMasternodeList();
7373

7474
void getAllGovernanceObjects(std::vector<CGovernanceObject> &obj);
@@ -119,6 +119,7 @@ class ClientModel : public QObject
119119
// representation of the list in UI during initial sync/reindex, so we cache it here too.
120120
mutable RecursiveMutex cs_mnlinst; // protects mnListCached
121121
CDeterministicMNListPtr mnListCached;
122+
const CBlockIndex* mnListTip;
122123

123124
void subscribeToCoreSignals();
124125
void unsubscribeFromCoreSignals();

src/qt/governancelist.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ void GovernanceList::updateProposalList()
348348
// A proposal is considered passing if (YES votes - NO votes) >= (Total Weight of Masternodes / 10),
349349
// count total valid (ENABLED) masternodes to determine passing threshold.
350350
// Need to query number of masternodes here with access to clientModel.
351-
const int nWeightedMnCount = clientModel->getMasternodeList().GetValidWeightedMNsCount();
351+
const int nWeightedMnCount = clientModel->getMasternodeList().first.GetValidWeightedMNsCount();
352352
const int nAbsVoteReq = std::max(Params().GetConsensus().nGovernanceMinQuorum, nWeightedMnCount / 10);
353353
proposalModel->setVotingParams(nAbsVoteReq);
354354

src/qt/masternodelist.cpp

+11-5
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,15 @@ void MasternodeList::updateDIP3List()
166166
return;
167167
}
168168

169-
auto mnList = clientModel->getMasternodeList();
169+
auto [mnList, pindex] = clientModel->getMasternodeList();
170+
auto projectedPayees = mnList.GetProjectedMNPayees(pindex);
171+
172+
if (projectedPayees.empty() && mnList.GetValidMNsCount() > 0) {
173+
// GetProjectedMNPayees failed to provide results for a list with valid mns.
174+
// Keep current list and let it try again later.
175+
return;
176+
}
177+
170178
std::map<uint256, CTxDestination> mapCollateralDests;
171179

172180
{
@@ -191,7 +199,6 @@ void MasternodeList::updateDIP3List()
191199

192200
nTimeUpdatedDIP3 = GetTime();
193201

194-
auto projectedPayees = mnList.GetProjectedMNPayeesAtChainTip();
195202
std::map<uint256, int> nextPayments;
196203
for (size_t i = 0; i < projectedPayees.size(); i++) {
197204
const auto& dmn = projectedPayees[i];
@@ -222,7 +229,7 @@ void MasternodeList::updateDIP3List()
222229
QByteArray addr_ba(reinterpret_cast<const char*>(addr_key.data()), addr_key.size());
223230
QTableWidgetItem* addressItem = new CMasternodeListWidgetItem<QByteArray>(QString::fromStdString(dmn.pdmnState->addr.ToString()), addr_ba);
224231
QTableWidgetItem* typeItem = new QTableWidgetItem(QString::fromStdString(std::string(GetMnType(dmn.nType).description)));
225-
QTableWidgetItem* statusItem = new QTableWidgetItem(mnList.IsMNValid(dmn) ? tr("ENABLED") : (mnList.IsMNPoSeBanned(dmn) ? tr("POSE_BANNED") : tr("UNKNOWN")));
232+
QTableWidgetItem* statusItem = new QTableWidgetItem(dmn.pdmnState->IsBanned() ? tr("POSE_BANNED") : tr("ENABLED"));
226233
QTableWidgetItem* PoSeScoreItem = new CMasternodeListWidgetItem<int>(QString::number(dmn.pdmnState->nPoSePenalty), dmn.pdmnState->nPoSePenalty);
227234
QTableWidgetItem* registeredItem = new CMasternodeListWidgetItem<int>(QString::number(dmn.pdmnState->nRegisteredHeight), dmn.pdmnState->nRegisteredHeight);
228235
QTableWidgetItem* lastPaidItem = new CMasternodeListWidgetItem<int>(QString::number(dmn.pdmnState->nLastPaidHeight), dmn.pdmnState->nLastPaidHeight);
@@ -349,8 +356,7 @@ CDeterministicMNCPtr MasternodeList::GetSelectedDIP3MN()
349356
uint256 proTxHash;
350357
proTxHash.SetHex(strProTxHash);
351358

352-
auto mnList = clientModel->getMasternodeList();
353-
return mnList.GetMN(proTxHash);
359+
return clientModel->getMasternodeList().first.GetMN(proTxHash);;
354360
}
355361

356362
void MasternodeList::extraInfoDIP3_clicked()

src/qt/rpcconsole.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,7 @@ void RPCConsole::updateMasternodeCount()
967967
if (!clientModel) {
968968
return;
969969
}
970-
auto mnList = clientModel->getMasternodeList();
970+
auto mnList = clientModel->getMasternodeList().first;
971971
size_t total_mn_count = mnList.GetAllMNsCount();
972972
size_t total_enabled_mn_count = mnList.GetValidMNsCount();
973973
size_t total_evo_count = mnList.GetAllEvoCount();
@@ -1247,7 +1247,7 @@ void RPCConsole::updateNodeDetail(const CNodeCombinedStats *stats)
12471247
ui->peerHeight->setText(QString::number(stats->nodeStats.nStartingHeight));
12481248
ui->peerWhitelisted->setText(stats->nodeStats.m_legacyWhitelisted ? tr("Yes") : tr("No"));
12491249
ui->peerMappedAS->setText(stats->nodeStats.m_mapped_as != 0 ? QString::number(stats->nodeStats.m_mapped_as) : tr("N/A"));
1250-
auto dmn = clientModel->getMasternodeList().GetMNByService(stats->nodeStats.addr);
1250+
auto dmn = clientModel->getMasternodeList().first.GetMNByService(stats->nodeStats.addr);
12511251
if (dmn == nullptr) {
12521252
ui->peerNodeType->setText(tr("Regular"));
12531253
ui->peerPoSeScore->setText(tr("N/A"));

src/rpc/masternode.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,9 @@ static UniValue masternode_count(const JSONRPCRequest& request)
135135

136136
static UniValue GetNextMasternodeForPayment(int heightShift)
137137
{
138-
auto mnList = deterministicMNManager->GetListAtChainTip();
139-
auto payees = mnList.GetProjectedMNPayeesAtChainTip(heightShift);
138+
const CBlockIndex *tip = WITH_LOCK(::cs_main, return ::ChainActive().Tip());
139+
auto mnList = deterministicMNManager->GetListForBlock(tip);
140+
auto payees = mnList.GetProjectedMNPayees(tip, heightShift);
140141
if (payees.empty())
141142
return "unknown";
142143
auto payee = payees.back();

src/ui_interface.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ void CClientUIInterface::ShowProgress(const std::string& title, int nProgress, b
5858
void CClientUIInterface::NotifyBlockTip(bool b, const CBlockIndex* i) { return g_ui_signals.NotifyBlockTip(b, i); }
5959
void CClientUIInterface::NotifyChainLock(const std::string& bestChainLockHash, int bestChainLockHeight) { return g_ui_signals.NotifyChainLock(bestChainLockHash, bestChainLockHeight); }
6060
void CClientUIInterface::NotifyHeaderTip(bool b, const CBlockIndex* i) { return g_ui_signals.NotifyHeaderTip(b, i); }
61-
void CClientUIInterface::NotifyMasternodeListChanged(const CDeterministicMNList& list) { return g_ui_signals.NotifyMasternodeListChanged(list); }
61+
void CClientUIInterface::NotifyMasternodeListChanged(const CDeterministicMNList& list, const CBlockIndex* i) { return g_ui_signals.NotifyMasternodeListChanged(list, i); }
6262
void CClientUIInterface::NotifyAdditionalDataSyncProgressChanged(double nSyncProgress) { return g_ui_signals.NotifyAdditionalDataSyncProgressChanged(nSyncProgress); }
6363
void CClientUIInterface::BannedListChanged() { return g_ui_signals.BannedListChanged(); }
6464

src/ui_interface.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class CClientUIInterface
118118
ADD_SIGNALS_DECL_WRAPPER(NotifyHeaderTip, void, bool, const CBlockIndex*);
119119

120120
/** Masternode list has changed */
121-
ADD_SIGNALS_DECL_WRAPPER(NotifyMasternodeListChanged, void, const CDeterministicMNList&);
121+
ADD_SIGNALS_DECL_WRAPPER(NotifyMasternodeListChanged, void, const CDeterministicMNList&, const CBlockIndex*);
122122

123123
/** Additional data sync progress changed */
124124
ADD_SIGNALS_DECL_WRAPPER(NotifyAdditionalDataSyncProgressChanged, void, double nSyncProgress);

0 commit comments

Comments
 (0)