diff options
author | Riccardo Spagni <ric@spagni.net> | 2018-12-04 17:12:46 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2018-12-04 17:12:47 +0200 |
commit | e7d30780ded1dc328b1f6048be5c7792e8a85caf (patch) | |
tree | d26daa6b238834ee29d6d879800fc919740f16ed /src/cryptonote_core/blockchain.cpp | |
parent | Merge pull request #4862 (diff) | |
parent | Avoid unnecessary temp block and copy ctor (diff) | |
download | monero-e7d30780ded1dc328b1f6048be5c7792e8a85caf.tar.xz |
Merge pull request #4869
60f36386 Avoid unnecessary temp block and copy ctor (moneromooo-monero)
Diffstat (limited to 'src/cryptonote_core/blockchain.cpp')
-rw-r--r-- | src/cryptonote_core/blockchain.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp index bfc5dbbe0..80e0a983e 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -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); |