Skip to content

Commit 79624cf

Browse files
authored
Merge pull request #512 from aguycalled/remove-bootstrap-gui
Remove Bootstrap option from GUI
2 parents 940c669 + 740c10a commit 79624cf

2 files changed

Lines changed: 0 additions & 34 deletions

File tree

src/qt/navcoingui.cpp

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ NavCoinGUI::NavCoinGUI(const PlatformStyle *platformStyle, const NetworkStyle *n
117117
usedReceivingAddressesAction(0),
118118
repairWalletAction(0),
119119
importPrivateKeyAction(0),
120-
bootstrapBlockchainAction(0),
121120
exportMasterPrivateKeyAction(0),
122121
signMessageAction(0),
123122
verifyMessageAction(0),
@@ -459,9 +458,6 @@ void NavCoinGUI::createActions()
459458
importPrivateKeyAction = new QAction(tr("&Import private key"), this);
460459
importPrivateKeyAction->setToolTip(tr("Import private key"));
461460

462-
bootstrapBlockchainAction = new QAction(tr("&Bootstrap blockchain"), this);
463-
bootstrapBlockchainAction->setToolTip(tr("Bootstrap blockchain"));
464-
465461
exportMasterPrivateKeyAction = new QAction(tr("Show &master private key"), this);
466462
exportMasterPrivateKeyAction->setToolTip(tr("Show master private key"));
467463

@@ -484,7 +480,6 @@ void NavCoinGUI::createActions()
484480
connect(openRPCConsoleAction, SIGNAL(triggered()), this, SLOT(showDebugWindow()));
485481
// prevents an open debug window from becoming stuck/unusable on client shutdown
486482
connect(quitAction, SIGNAL(triggered()), rpcConsole, SLOT(hide()));
487-
connect(bootstrapBlockchainAction, SIGNAL(triggered()), this, SLOT(bootstrapBlockchain()));
488483

489484
#ifdef ENABLE_WALLET
490485
if(walletFrame)
@@ -508,31 +503,6 @@ void NavCoinGUI::createActions()
508503
new QShortcut(QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_D), this, SLOT(showDebugWindow()));
509504
}
510505

511-
void NavCoinGUI::bootstrapBlockchain()
512-
{
513-
bool ok = false;
514-
QString defaultUrl = "https://s3.amazonaws.com/navcoin-bootstrap/bootstrap-navcoin_" +
515-
QString::fromStdString(Params().NetworkIDString()) + "net.tar";
516-
QString url = QInputDialog::getText(this, tr("Bootstrap blockchain"),
517-
tr("You can use an external trusted source to download the blockchain from.<BR>The following URL points to a bootstrap copy provided by the NavCoin Core Team.<BR>Where would you like to download it from?"), QLineEdit::Normal,
518-
defaultUrl, &ok);
519-
if (ok && !url.isEmpty())
520-
{
521-
QMessageBox::StandardButton btnRetVal = QMessageBox::question(this, tr("Bootstrap blockchain"),
522-
tr("Client restart required to initiate download.<br><br>Client will be shut down and you should manually start it again. Do you want to proceed?"),
523-
QMessageBox::Yes | QMessageBox::Cancel, QMessageBox::Cancel);
524-
525-
if(btnRetVal == QMessageBox::Cancel)
526-
return;
527-
528-
RemoveConfigFile("bootstrap");
529-
WriteConfigFile("bootstrap",url.toStdString());
530-
531-
QApplication::quit();
532-
}
533-
534-
}
535-
536506
void NavCoinGUI::createMenuBar()
537507
{
538508
#ifdef Q_OS_MAC
@@ -559,7 +529,6 @@ void NavCoinGUI::createMenuBar()
559529
file->addSeparator();
560530
file->addAction(importPrivateKeyAction);
561531
file->addAction(exportMasterPrivateKeyAction);
562-
file->addAction(bootstrapBlockchainAction);
563532
}
564533
file->addAction(quitAction);
565534

src/qt/navcoingui.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ class NavCoinGUI : public QMainWindow
109109
QAction *usedReceivingAddressesAction;
110110
QAction *repairWalletAction;
111111
QAction *importPrivateKeyAction;
112-
QAction *bootstrapBlockchainAction;
113112
QAction *exportMasterPrivateKeyAction;
114113
QAction *signMessageAction;
115114
QAction *verifyMessageAction;
@@ -268,8 +267,6 @@ private Q_SLOTS:
268267
void showHelpMessageClicked();
269268
/** Toggle Staking **/
270269
void toggleStaking();
271-
/** Bootstrap blockchain **/
272-
void bootstrapBlockchain();
273270
#ifndef Q_OS_MAC
274271
/** Handle tray icon clicked */
275272
void trayIconActivated(QSystemTrayIcon::ActivationReason reason);

0 commit comments

Comments
 (0)