mirror of
https://github.com/monero-project/monero.git
synced 2025-08-14 09:45:34 -04:00
Merge pull request #4869
60f36386
Avoid unnecessary temp block and copy ctor (moneromooo-monero)
This commit is contained in:
commit
e7d30780de
3 changed files with 5 additions and 5 deletions
|
@ -404,7 +404,7 @@ bool Blockchain::init(BlockchainDB* db, const network_type nettype, bool offline
|
|||
if(!m_db->height())
|
||||
{
|
||||
MINFO("Blockchain not loaded, generating genesis block.");
|
||||
block bl = boost::value_initialized<block>();
|
||||
block bl;
|
||||
block_verification_context bvc = boost::value_initialized<block_verification_context>();
|
||||
generate_genesis_block(bl, get_config(m_nettype).GENESIS_TX, get_config(m_nettype).GENESIS_NONCE);
|
||||
add_new_block(bl, bvc);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue