@@ -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-
536506void 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
0 commit comments