Skip to content

Commit

Permalink
Merge pull request #1327 from bitshares/minor-improve1
Browse files Browse the repository at this point in the history
application.cpp: minor optimization
  • Loading branch information
abitmore committed Sep 14, 2018
2 parents 5a003be + 2043ecc commit 0508438
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libraries/app/application.cpp
Expand Up @@ -529,10 +529,12 @@ bool application_impl::handle_block(const graphene::net::block_message& blk_msg,
// happens, there's no reason to fetch the transactions, so construct a list of the
// transaction message ids we no longer need.
// during sync, it is unlikely that we'll see any old
contained_transaction_message_ids.reserve( contained_transaction_message_ids.size()
+ blk_msg.block.transactions.size() );
for (const processed_transaction& transaction : blk_msg.block.transactions)
{
graphene::net::trx_message transaction_message(transaction);
contained_transaction_message_ids.push_back(graphene::net::message(transaction_message).id());
contained_transaction_message_ids.emplace_back(graphene::net::message(transaction_message).id());
}
}

Expand Down

0 comments on commit 0508438

Please sign in to comment.