Skip to content

Commit fd9fa0e

Browse files
authored
Merge pull request #1586 from cyrossignol/remove-primarycpid-diagnostics
Remove PrimaryCPID check from diagnostics dialog
2 parents 9f113f1 + ed937d8 commit fd9fa0e

File tree

3 files changed

+0
-43
lines changed

3 files changed

+0
-43
lines changed

src/qt/diagnosticsdialog.cpp

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,6 @@ bool DiagnosticsDialog::VerifyBoincPath()
4242
return boost::filesystem::exists(boincPath) ? true : false;
4343
}
4444

45-
bool DiagnosticsDialog::FindCPID()
46-
{
47-
std::string cpid = GetArgument("PrimaryCPID", "");
48-
49-
return IsResearcher(cpid) ? true : false;
50-
}
51-
5245
bool DiagnosticsDialog::VerifyIsCPIDValid()
5346
{
5447
boost::filesystem::path clientStatePath = GetBoincDataDir();
@@ -216,19 +209,6 @@ void DiagnosticsDialog::on_testButton_clicked()
216209
else
217210
ui->boincPathResultLabel->setText("Failed");
218211

219-
//find cpid
220-
#ifndef WIN32
221-
ui->findCPIDResultLabel->setText("N/A");
222-
#else
223-
ui->findCPIDResultLabel->setText("Testing...");
224-
this->repaint();
225-
226-
if (FindCPID())
227-
ui->findCPIDResultLabel->setText(QString::fromStdString("Passed CPID: " + GetArgument("PrimaryCPID", "")));
228-
229-
else
230-
ui->findCPIDResultLabel->setText("Failed (Is PrimaryCPID in gridcoinresearch.conf?)");
231-
#endif
232212
//cpid valid
233213
ui->verifyCPIDValidResultLabel->setText("Testing...");
234214
this->repaint();

src/qt/diagnosticsdialog.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ class DiagnosticsDialog : public QDialog
2727
bool VerifyCPIDIsInNeuralNetwork();
2828
bool VerifyWalletIsSynced();
2929
bool VerifyIsCPIDValid();
30-
bool FindCPID();
3130
bool VerifyCPIDHasRAC();
3231
int VerifyCountSeedNodes();
3332
int VerifyCountConnections();

src/qt/forms/diagnosticsdialog.ui

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -162,28 +162,6 @@
162162
</property>
163163
</widget>
164164
</item>
165-
<item row="2" column="1">
166-
<widget class="QLabel" name="findCPIDResultLabel">
167-
<property name="sizePolicy">
168-
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
169-
<horstretch>0</horstretch>
170-
<verstretch>0</verstretch>
171-
</sizepolicy>
172-
</property>
173-
<property name="minimumSize">
174-
<size>
175-
<width>200</width>
176-
<height>0</height>
177-
</size>
178-
</property>
179-
<property name="text">
180-
<string/>
181-
</property>
182-
<property name="wordWrap">
183-
<bool>true</bool>
184-
</property>
185-
</widget>
186-
</item>
187165
<item row="4" column="1">
188166
<widget class="QLabel" name="verifyCPIDHasRACResultLabel">
189167
<property name="sizePolicy">

0 commit comments

Comments
 (0)