diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-11-19 17:55:53 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-11-19 17:57:17 +0000 |
commit | 60f36386e4c844040371974f01da07ed02942529 (patch) | |
tree | 769d77d229b6eb0e76473ed01608ed3291ec4eb9 /src/cryptonote_basic | |
parent | Merge pull request #4820 (diff) | |
download | monero-60f36386e4c844040371974f01da07ed02942529.tar.xz |
Avoid unnecessary temp block and copy ctor
block already has a default ctor, and the extra object
churn due to its innards (vectors, etc) is pointless.
Diffstat (limited to 'src/cryptonote_basic')
-rw-r--r-- | src/cryptonote_basic/miner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_basic/miner.cpp b/src/cryptonote_basic/miner.cpp index d8ca2dd35..339d68580 100644 --- a/src/cryptonote_basic/miner.cpp +++ b/src/cryptonote_basic/miner.cpp @@ -146,7 +146,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? |