Skip to content

Commit

Permalink
Change Proof of Research Difficulty to Difficulty
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescowens committed May 20, 2021
1 parent 8f36b96 commit c7f2fee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/qt/forms/rpcconsole.ui
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>1000</width>
<height>720</height>
<height>944</height>
</rect>
</property>
<property name="windowTitle">
Expand Down Expand Up @@ -48,7 +48,7 @@
</widget>
</item>
<item row="37" column="2">
<widget class="QLabel" name="porDiff">
<widget class="QLabel" name="diff">
<property name="text">
<string>N/A</string>
</property>
Expand Down Expand Up @@ -295,9 +295,9 @@
</widget>
</item>
<item row="37" column="0">
<widget class="QLabel" name="porDiffLabel">
<widget class="QLabel" name="diffLabel">
<property name="text">
<string>Proof Of Research Difficulty</string>
<string>Difficulty</string>
</property>
</widget>
</item>
Expand Down
6 changes: 3 additions & 3 deletions src/qt/rpcconsole.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ void RPCConsole::setClientModel(ClientModel *model)
setNumBlocks(model->getNumBlocks(), model->getNumBlocksOfPeers());

ui->boostVersion->setText(model->formatBoostVersion());
ui->porDiff->setText(model->getDifficulty());
ui->diff->setText(model->getDifficulty());

//Setup autocomplete and attach it
QStringList wordList;
Expand Down Expand Up @@ -487,7 +487,7 @@ void RPCConsole::message(int category, const QString &message, bool html)
void RPCConsole::setNumConnections(int count)
{
ui->numberOfConnections->setText(QString::number(count));
if (clientModel) ui->porDiff->setText(clientModel->getDifficulty());
if (clientModel) ui->diff->setText(clientModel->getDifficulty());

}

Expand All @@ -500,7 +500,7 @@ void RPCConsole::setNumBlocks(int count, int countOfPeers)
// If there is no current number available display N/A instead of 0, which can't ever be true
ui->totalBlocks->setText(clientModel->getNumBlocksOfPeers() == 0 ? tr("N/A") : QString::number(clientModel->getNumBlocksOfPeers()));
ui->lastBlockTime->setText(clientModel->getLastBlockDate().toString());
ui->porDiff->setText(clientModel->getDifficulty());
ui->diff->setText(clientModel->getDifficulty());
}
}

Expand Down

0 comments on commit c7f2fee

Please sign in to comment.