aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_basic
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-10-15 18:47:43 +0200
committerRiccardo Spagni <ric@spagni.net>2017-10-15 18:47:43 +0200
commite50bf5f81128b8ccaf2a623fa4437da09623cffb (patch)
treeb6e0c8973905d9bdb1f852c11617bf7b6176f42b /src/cryptonote_basic
parentMerge pull request #2596 (diff)
parentminer: always update block template when starting (diff)
downloadmonero-e50bf5f81128b8ccaf2a623fa4437da09623cffb.tar.xz
Merge pull request #2597
c4136134 miner: always update block template when starting (moneromooo-monero)
Diffstat (limited to 'src/cryptonote_basic')
-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 8f53c2d3c..0aafe24e1 100644
--- a/src/cryptonote_basic/miner.cpp
+++ b/src/cryptonote_basic/miner.cpp
@@ -291,8 +291,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);