diff --git a/libraries/app/database_api.cpp b/libraries/app/database_api.cpp index a90f2796..59b03acd 100644 --- a/libraries/app/database_api.cpp +++ b/libraries/app/database_api.cpp @@ -577,7 +577,7 @@ std::map database_api_impl::get_full_accounts( const // Add the account's balances - auto balance_range = _db.get_index_type().indices().get().equal_range(account->id); + auto balance_range = _db.get_index_type().indices().get().equal_range(boost::make_tuple(account->id)); //vector balances; std::for_each(balance_range.first, balance_range.second, [&acnt](const account_balance_object& balance) { @@ -711,7 +711,7 @@ vector database_api_impl::get_account_balances(account_id_type acnt, cons { // if the caller passes in an empty list of assets, return balances for all assets the account owns const account_balance_index& balance_index = _db.get_index_type(); - auto range = balance_index.indices().get().equal_range(acnt); + auto range = balance_index.indices().get().equal_range(boost::make_tuple(acnt)); for (const account_balance_object& balance : boost::make_iterator_range(range.first, range.second)) result.push_back(asset(balance.get_balance())); } diff --git a/libraries/chain/db_block.cpp b/libraries/chain/db_block.cpp index c2feb967..41299655 100644 --- a/libraries/chain/db_block.cpp +++ b/libraries/chain/db_block.cpp @@ -631,8 +631,8 @@ processed_transaction database::_apply_transaction(const signed_transaction& trx ptrx.operation_results = std::move(eval_state.operation_results); //Make sure the temp account has no non-zero balances - const auto& index = get_index_type().indices().get(); - auto range = index.equal_range(GRAPHENE_TEMP_ACCOUNT); + const auto& index = get_index_type().indices().get(); + auto range = index.equal_range( boost::make_tuple( GRAPHENE_TEMP_ACCOUNT ) ); std::for_each(range.first, range.second, [](const account_balance_object& b) { FC_ASSERT(b.balance == 0); }); return ptrx; diff --git a/libraries/chain/include/graphene/chain/account_object.hpp b/libraries/chain/include/graphene/chain/account_object.hpp index a0cf2da5..69c66789 100644 --- a/libraries/chain/include/graphene/chain/account_object.hpp +++ b/libraries/chain/include/graphene/chain/account_object.hpp @@ -290,7 +290,6 @@ namespace graphene { namespace chain { }; struct by_asset; - struct by_account; struct by_account_asset; /** * @ingroup object_index @@ -304,7 +303,6 @@ namespace graphene { namespace chain { member, member > >, - ordered_non_unique< tag, member >, ordered_non_unique< tag, member > > > account_balance_object_multi_index_type;