aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-10-07 11:32:36 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-10-07 11:32:36 +0100
commitc413613416fa6656cbe9aa9fca43d8ea1251a202 (patch)
treea211e9f0ffc4e389350b7fda0fdd916ad13679b1
parentMerge pull request #2548 (diff)
downloadmonero-c413613416fa6656cbe9aa9fca43d8ea1251a202.tar.xz
miner: always update block template when starting
This fixes using the previous address when starting mining, then stopping and restarting with a different address
-rw-r--r--src/cryptonote_basic/miner.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cryptonote_basic/miner.cpp b/src/cryptonote_basic/miner.cpp
index b620e3426..580f84384 100644
--- a/src/cryptonote_basic/miner.cpp
+++ b/src/cryptonote_basic/miner.cpp
@@ -289,8 +289,7 @@ namespace cryptonote
return false;
}
- if(!m_template_no)
- request_block_template();//lets update block template
+ request_block_template();//lets update block template
boost::interprocess::ipcdetail::atomic_write32(&m_stop, 0);
boost::interprocess::ipcdetail::atomic_write32(&m_thread_index, 0);