mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
qt: Change Node Type to recognize 3 types: Regular, Masternode and Verified Masternode (#3995)
This commit is contained in:
parent
260cc09de2
commit
5ce5e35580
@ -1240,13 +1240,17 @@ void RPCConsole::updateNodeDetail(const CNodeCombinedStats *stats)
|
|||||||
ui->peerDirection->setText(stats->nodeStats.fInbound ? tr("Inbound") : tr("Outbound"));
|
ui->peerDirection->setText(stats->nodeStats.fInbound ? tr("Inbound") : tr("Outbound"));
|
||||||
ui->peerHeight->setText(QString("%1").arg(QString::number(stats->nodeStats.nStartingHeight)));
|
ui->peerHeight->setText(QString("%1").arg(QString::number(stats->nodeStats.nStartingHeight)));
|
||||||
ui->peerWhitelisted->setText(stats->nodeStats.fWhitelisted ? tr("Yes") : tr("No"));
|
ui->peerWhitelisted->setText(stats->nodeStats.fWhitelisted ? tr("Yes") : tr("No"));
|
||||||
if (stats->nodeStats.verifiedProRegTxHash.IsNull()) {
|
auto dmn = clientModel->getMasternodeList().GetMNByService(stats->nodeStats.addr);
|
||||||
ui->peerNodeType->setText(tr("Normal"));
|
if (dmn == nullptr) {
|
||||||
|
ui->peerNodeType->setText(tr("Regular"));
|
||||||
ui->peerPoSeScore->setText(tr("N/A"));
|
ui->peerPoSeScore->setText(tr("N/A"));
|
||||||
} else {
|
} else {
|
||||||
|
if (stats->nodeStats.verifiedProRegTxHash.IsNull()) {
|
||||||
ui->peerNodeType->setText(tr("Masternode"));
|
ui->peerNodeType->setText(tr("Masternode"));
|
||||||
auto dmn = clientModel->getMasternodeList().GetMNByService(stats->nodeStats.addr);
|
} else {
|
||||||
ui->peerPoSeScore->setText(dmn == nullptr ? tr("N/A") : QString::number(dmn->pdmnState->nPoSePenalty));
|
ui->peerNodeType->setText(tr("Verified Masternode"));
|
||||||
|
}
|
||||||
|
ui->peerPoSeScore->setText(QString::number(dmn->pdmnState->nPoSePenalty));
|
||||||
}
|
}
|
||||||
|
|
||||||
// This check fails for example if the lock was busy and
|
// This check fails for example if the lock was busy and
|
||||||
|
Loading…
Reference in New Issue
Block a user