Merge pull request #4869

60f36386 Avoid unnecessary temp block and copy ctor (moneromooo-monero)
This commit is contained in:
Riccardo Spagni
2018-12-04 17:12:46 +02:00
3 changed files with 5 additions and 5 deletions

View File

@@ -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?