From 25ceb9a2775b103abdaf1721fb78d0e60238c62f Mon Sep 17 00:00:00 2001 From: Daniel Larimer Date: Thu, 13 Aug 2015 09:29:16 -0400 Subject: [PATCH] return vote objects with full_account query --- libraries/app/api.cpp | 1 + libraries/app/include/graphene/app/full_account.hpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/libraries/app/api.cpp b/libraries/app/api.cpp index 8ca34c06..9b20df99 100644 --- a/libraries/app/api.cpp +++ b/libraries/app/api.cpp @@ -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(account->options.votes.begin(),account->options.votes.end()) ); // Add the account itself, its statistics object, cashback balance, and referral account names /* diff --git a/libraries/app/include/graphene/app/full_account.hpp b/libraries/app/include/graphene/app/full_account.hpp index 5428030d..3132a0ca 100644 --- a/libraries/app/include/graphene/app/full_account.hpp +++ b/libraries/app/include/graphene/app/full_account.hpp @@ -14,6 +14,7 @@ namespace graphene { namespace app { string registrar_name; string referrer_name; string lifetime_referrer_name; + vector votes; optional cashback_balance; vector balances; vector 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)