Last active
November 5, 2017 19:09
-
-
Save ftrader/8c2226c161c0c0613be19fb176909d2b to your computer and use it in GitHub Desktop.
Patch to Tom Zander's difficultySim to set cw144 as default on startup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/chain.cpp b/chain.cpp | |
| index f99f380..aabf36f 100755 | |
| --- a/chain.cpp | |
| +++ b/chain.cpp | |
| @@ -12,7 +12,7 @@ Chain::Chain(QObject *parent) : QObject(parent), | |
| m_baseDifficulty(-1), | |
| m_emergencyCount(0), | |
| m_height(-1), | |
| - m_algo(Satoshi), | |
| + m_algo(cw144), | |
| m_timer(new QTimer(this)) | |
| { | |
| addBlock(0); // genesis | |
| diff --git a/mainwindow.cpp b/mainwindow.cpp | |
| index 8bff2f6..6518a5e 100755 | |
| --- a/mainwindow.cpp | |
| +++ b/mainwindow.cpp | |
| @@ -26,7 +26,8 @@ MainWindow::MainWindow(QWidget *parent) : | |
| group->addAction(ui->actionDeadalnix); | |
| group->addAction(ui->actioncw144); | |
| group->addAction(ui->actionwt144); | |
| - ui->actionSatoshi->setChecked(true); | |
| + //ui->actionSatoshi->setChecked(true); | |
| + ui->actioncw144->setChecked(true); | |
| m_stats->moveToThread(m_statsThread); | |
| m_statsThread->start(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment