mirror of
https://github.com/monero-project/monero.git
synced 2025-05-02 17:54:53 -04:00
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.
This commit is contained in:
parent
d850e05b53
commit
60f36386e4
3 changed files with 5 additions and 5 deletions
|
@ -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?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue