From 0f25cd2a0d078079934cdeb3db6661f82b325451 Mon Sep 17 00:00:00 2001 From: Daniel Larimer Date: Tue, 27 Oct 2015 13:52:23 -0400 Subject: [PATCH] Fix Issue #324 - getKeyRefs now returns for memo and active keys --- libraries/chain/account_object.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libraries/chain/account_object.cpp b/libraries/chain/account_object.cpp index 79729638..0830ce07 100644 --- a/libraries/chain/account_object.cpp +++ b/libraries/chain/account_object.cpp @@ -128,6 +128,8 @@ set account_member_index::get_account_members(const account_obj set result; for( auto auth : a.owner.account_auths ) result.insert(auth.first); + for( auto auth : a.active.account_auths ) + result.insert(auth.first); return result; } set account_member_index::get_key_members(const account_object& a)const @@ -135,6 +137,9 @@ set account_member_index::get_key_members(const account_object& set result; for( auto auth : a.owner.key_auths ) result.insert(auth.first); + for( auto auth : a.active.key_auths ) + result.insert(auth.first); + result.insert( a.options.memo_key ); return result; } set
account_member_index::get_address_members(const account_object& a)const @@ -142,6 +147,9 @@ set
account_member_index::get_address_members(const account_object& a)c set
result; for( auto auth : a.owner.address_auths ) result.insert(auth.first); + for( auto auth : a.active.address_auths ) + result.insert(auth.first); + result.insert( a.options.memo_key ); return result; }