diff --git a/libraries/app/database_api.cpp b/libraries/app/database_api.cpp index 153a4672..7ca49ee0 100644 --- a/libraries/app/database_api.cpp +++ b/libraries/app/database_api.cpp @@ -607,6 +607,13 @@ std::map database_api_impl::get_full_accounts( const [&acnt] (const asset_object& asset) { acnt.assets.emplace_back(asset.id); }); + + // get withdraws permissions + auto withdraw_range = _db.get_index_type().indices().get().equal_range(account->id); + std::for_each(withdraw_range.first, withdraw_range.second, + [&acnt] (const withdraw_permission_object& withdraw) { + acnt.withdraws.emplace_back(withdraw); + }); results[account_name_or_id] = acnt; diff --git a/libraries/app/include/graphene/app/full_account.hpp b/libraries/app/include/graphene/app/full_account.hpp index 278df7a1..a8c87844 100644 --- a/libraries/app/include/graphene/app/full_account.hpp +++ b/libraries/app/include/graphene/app/full_account.hpp @@ -26,6 +26,7 @@ #include #include #include +#include namespace graphene { namespace app { using namespace graphene::chain; @@ -44,7 +45,8 @@ namespace graphene { namespace app { vector limit_orders; vector call_orders; vector proposals; - vector assets; + vector assets; + vector withdraws; }; } } @@ -63,4 +65,5 @@ FC_REFLECT( graphene::app::full_account, (call_orders) (proposals) (assets) + (withdraws) )