diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-10-07 11:32:36 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-10-07 11:32:36 +0100 |
commit | c413613416fa6656cbe9aa9fca43d8ea1251a202 (patch) | |
tree | a211e9f0ffc4e389350b7fda0fdd916ad13679b1 /src/cryptonote_basic/miner.cpp | |
parent | Merge pull request #2548 (diff) | |
download | monero-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
Diffstat (limited to '')
-rw-r--r-- | src/cryptonote_basic/miner.cpp | 3 |
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); |