Changed the use of boost:value_initialized for C++ list initializer
This commit is contained in:
@@ -746,7 +746,7 @@ namespace cryptonote
|
||||
//-----------------------------------------------------------------------------------------------
|
||||
bool core::handle_incoming_tx_pre(const blobdata& tx_blob, tx_verification_context& tvc, cryptonote::transaction &tx, crypto::hash &tx_hash, bool keeped_by_block, bool relayed, bool do_not_relay)
|
||||
{
|
||||
tvc = boost::value_initialized<tx_verification_context>();
|
||||
tvc = {};
|
||||
|
||||
if(tx_blob.size() > get_max_tx_size())
|
||||
{
|
||||
@@ -1345,7 +1345,7 @@ namespace cryptonote
|
||||
//-----------------------------------------------------------------------------------------------
|
||||
bool core::handle_block_found(block& b, block_verification_context &bvc)
|
||||
{
|
||||
bvc = boost::value_initialized<block_verification_context>();
|
||||
bvc = {};
|
||||
m_miner.pause();
|
||||
std::vector<block_complete_entry> blocks;
|
||||
try
|
||||
@@ -1374,7 +1374,7 @@ namespace cryptonote
|
||||
CHECK_AND_ASSERT_MES(!bvc.m_verifivation_failed, false, "mined block failed verification");
|
||||
if(bvc.m_added_to_main_chain)
|
||||
{
|
||||
cryptonote_connection_context exclude_context = boost::value_initialized<cryptonote_connection_context>();
|
||||
cryptonote_connection_context exclude_context = {};
|
||||
NOTIFY_NEW_BLOCK::request arg = AUTO_VAL_INIT(arg);
|
||||
arg.current_blockchain_height = m_blockchain_storage.get_current_blockchain_height();
|
||||
std::vector<crypto::hash> missed_txs;
|
||||
@@ -1442,7 +1442,7 @@ namespace cryptonote
|
||||
{
|
||||
TRY_ENTRY();
|
||||
|
||||
bvc = boost::value_initialized<block_verification_context>();
|
||||
bvc = {};
|
||||
|
||||
if (!check_incoming_block_size(block_blob))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user