From d1096500d1a8e6d58e0835ef7d3fb0daa9fa7fa4 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Thu, 26 Oct 2023 17:06:09 +0300 Subject: [PATCH] fix statusItem --- src/qt/masternodelist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qt/masternodelist.cpp b/src/qt/masternodelist.cpp index 8bc5d9916fddb..36ca8ae1de486 100644 --- a/src/qt/masternodelist.cpp +++ b/src/qt/masternodelist.cpp @@ -229,7 +229,7 @@ void MasternodeList::updateDIP3List() QByteArray addr_ba(reinterpret_cast(addr_key.data()), addr_key.size()); QTableWidgetItem* addressItem = new CMasternodeListWidgetItem(QString::fromStdString(dmn.pdmnState->addr.ToString()), addr_ba); QTableWidgetItem* typeItem = new QTableWidgetItem(QString::fromStdString(std::string(GetMnType(dmn.nType).description))); - QTableWidgetItem* statusItem = new QTableWidgetItem(mnList.IsMNValid(dmn) ? tr("ENABLED") : (mnList.IsMNPoSeBanned(dmn) ? tr("POSE_BANNED") : tr("UNKNOWN"))); + QTableWidgetItem* statusItem = new QTableWidgetItem(dmn.pdmnState->IsBanned() ? tr("POSE_BANNED") : tr("ENABLED")); QTableWidgetItem* PoSeScoreItem = new CMasternodeListWidgetItem(QString::number(dmn.pdmnState->nPoSePenalty), dmn.pdmnState->nPoSePenalty); QTableWidgetItem* registeredItem = new CMasternodeListWidgetItem(QString::number(dmn.pdmnState->nRegisteredHeight), dmn.pdmnState->nRegisteredHeight); QTableWidgetItem* lastPaidItem = new CMasternodeListWidgetItem(QString::number(dmn.pdmnState->nLastPaidHeight), dmn.pdmnState->nLastPaidHeight);