From c413613416fa6656cbe9aa9fca43d8ea1251a202 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Sat, 7 Oct 2017 11:32:36 +0100 Subject: [PATCH] miner: always update block template when starting This fixes using the previous address when starting mining, then stopping and restarting with a different address --- src/cryptonote_basic/miner.cpp | 3 +-- 1 file changed, 1 insertion(+), 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);