Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions src/qt/diagnosticsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,6 @@ bool DiagnosticsDialog::VerifyBoincPath()
return boost::filesystem::exists(boincPath) ? true : false;
}

bool DiagnosticsDialog::FindCPID()
{
std::string cpid = GetArgument("PrimaryCPID", "");

return IsResearcher(cpid) ? true : false;
}

bool DiagnosticsDialog::VerifyIsCPIDValid()
{
boost::filesystem::path clientStatePath = GetBoincDataDir();
Expand Down Expand Up @@ -216,19 +209,6 @@ void DiagnosticsDialog::on_testButton_clicked()
else
ui->boincPathResultLabel->setText("Failed");

//find cpid
#ifndef WIN32
ui->findCPIDResultLabel->setText("N/A");
#else
ui->findCPIDResultLabel->setText("Testing...");
this->repaint();

if (FindCPID())
ui->findCPIDResultLabel->setText(QString::fromStdString("Passed CPID: " + GetArgument("PrimaryCPID", "")));

else
ui->findCPIDResultLabel->setText("Failed (Is PrimaryCPID in gridcoinresearch.conf?)");
#endif
//cpid valid
ui->verifyCPIDValidResultLabel->setText("Testing...");
this->repaint();
Expand Down
1 change: 0 additions & 1 deletion src/qt/diagnosticsdialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ class DiagnosticsDialog : public QDialog
bool VerifyCPIDIsInNeuralNetwork();
bool VerifyWalletIsSynced();
bool VerifyIsCPIDValid();
bool FindCPID();
bool VerifyCPIDHasRAC();
int VerifyCountSeedNodes();
int VerifyCountConnections();
Expand Down
22 changes: 0 additions & 22 deletions src/qt/forms/diagnosticsdialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -162,28 +162,6 @@
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QLabel" name="findCPIDResultLabel">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>200</width>
<height>0</height>
</size>
</property>
<property name="text">
<string/>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QLabel" name="verifyCPIDHasRACResultLabel">
<property name="sizePolicy">
Expand Down