Skip to content

Instantly share code, notes, and snippets.

@ftrader
Last active November 5, 2017 19:09
Show Gist options
  • Select an option

  • Save ftrader/8c2226c161c0c0613be19fb176909d2b to your computer and use it in GitHub Desktop.

Select an option

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
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