aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_basic/miner.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-12-04 17:12:46 +0200
committerRiccardo Spagni <ric@spagni.net>2018-12-04 17:12:47 +0200
commite7d30780ded1dc328b1f6048be5c7792e8a85caf (patch)
treed26daa6b238834ee29d6d879800fc919740f16ed /src/cryptonote_basic/miner.cpp
parentMerge pull request #4862 (diff)
parentAvoid unnecessary temp block and copy ctor (diff)
downloadmonero-e7d30780ded1dc328b1f6048be5c7792e8a85caf.tar.xz
Merge pull request #4869
60f36386 Avoid unnecessary temp block and copy ctor (moneromooo-monero)
Diffstat (limited to 'src/cryptonote_basic/miner.cpp')
-rw-r--r--src/cryptonote_basic/miner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_basic/miner.cpp b/src/cryptonote_basic/miner.cpp
index 9bc99f053..f4de2ed7e 100644
--- a/src/cryptonote_basic/miner.cpp
+++ b/src/cryptonote_basic/miner.cpp
@@ -147,7 +147,7 @@ namespace cryptonote
//-----------------------------------------------------------------------------------------------------
bool miner::request_block_template()
{
- block bl = AUTO_VAL_INIT(bl);
+ block bl;
difficulty_type di = AUTO_VAL_INIT(di);
uint64_t height = AUTO_VAL_INIT(height);
uint64_t expected_reward; //only used for RPC calls - could possibly be useful here too?