return vote objects with full_account query

This commit is contained in:
Daniel Larimer 2015-08-13 09:29:16 -04:00
parent 80602a1f7b
commit 25ceb9a277
2 changed files with 3 additions and 0 deletions

View file

@ -259,6 +259,7 @@ namespace graphene { namespace app {
acnt.registrar_name = account->registrar(_db).name;
acnt.referrer_name = account->referrer(_db).name;
acnt.lifetime_referrer_name = account->lifetime_referrer(_db).name;
acnt.votes = lookup_vote_ids( vector<vote_id_type>(account->options.votes.begin(),account->options.votes.end()) );
// Add the account itself, its statistics object, cashback balance, and referral account names
/*

View file

@ -14,6 +14,7 @@ namespace graphene { namespace app {
string registrar_name;
string referrer_name;
string lifetime_referrer_name;
vector<variant> votes;
optional<vesting_balance_object> cashback_balance;
vector<account_balance_object> balances;
vector<vesting_balance_object> vesting_balances;
@ -29,6 +30,7 @@ FC_REFLECT( graphene::app::full_account,
(registrar_name)
(referrer_name)
(lifetime_referrer_name)
(votes)
(cashback_balance)
(balances)
(vesting_balances)