diff --git a/libraries/app/database_api.cpp b/libraries/app/database_api.cpp index 5c882d07..09052f20 100644 --- a/libraries/app/database_api.cpp +++ b/libraries/app/database_api.cpp @@ -666,6 +666,11 @@ std::map database_api_impl::get_full_accounts( const [&acnt] (const call_order_object& call) { acnt.call_orders.emplace_back(call); }); + auto settle_range = _db.get_index_type().indices().get().equal_range(account->id); + std::for_each(settle_range.first, settle_range.second, + [&acnt] (const force_settlement_object& settle) { + acnt.settle_orders.emplace_back(settle); + }); // get assets issued by user auto asset_range = _db.get_index_type().indices().get().equal_range(account->id); diff --git a/libraries/app/include/graphene/app/full_account.hpp b/libraries/app/include/graphene/app/full_account.hpp index a8c87844..dea5eb7e 100644 --- a/libraries/app/include/graphene/app/full_account.hpp +++ b/libraries/app/include/graphene/app/full_account.hpp @@ -44,6 +44,7 @@ namespace graphene { namespace app { vector vesting_balances; vector limit_orders; vector call_orders; + vector settle_orders; vector proposals; vector assets; vector withdraws; @@ -51,7 +52,7 @@ namespace graphene { namespace app { } } -FC_REFLECT( graphene::app::full_account, +FC_REFLECT( graphene::app::full_account, (account) (statistics) (registrar_name) @@ -63,7 +64,8 @@ FC_REFLECT( graphene::app::full_account, (vesting_balances) (limit_orders) (call_orders) - (proposals) + (settle_orders) + (proposals) (assets) (withdraws) )