Skip to content

Commit

Permalink
Refactoring.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariusz-Trela committed Feb 7, 2018
1 parent ec45dd5 commit 2b1ea23
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion libraries/chain/include/steem/chain/steem_object_types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

namespace steem { namespace chain {

namespace bip = chainbase::bip;
using namespace boost::multi_index;

using boost::multi_index_container;
Expand Down
6 changes: 3 additions & 3 deletions tests/db_fixture/database_fixture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -573,10 +573,10 @@ vector< operation > database_fixture::get_last_operations( uint32_t num_ops )
while( itr != acc_hist_idx.begin() && ops.size() < num_ops )
{
itr--;
const buffer_type& bip_serialized_op = db->get(itr->op).serialized_op;
const buffer_type& _serialized_op = db->get(itr->op).serialized_op;
std::vector<char> serialized_op;
serialized_op.reserve( bip_serialized_op.size() );
std::copy( bip_serialized_op.begin(), bip_serialized_op.end(), std::back_inserter( serialized_op ) );
serialized_op.reserve( _serialized_op.size() );
std::copy( _serialized_op.begin(), _serialized_op.end(), std::back_inserter( serialized_op ) );
ops.push_back( fc::raw::unpack_from_vector< steem::chain::operation >( serialized_op ) );
}

Expand Down

0 comments on commit 2b1ea23

Please sign in to comment.