Skip to content

Commit

Permalink
Fixed get_potential_signatures_other test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronak Patel committed Aug 29, 2019
1 parent 8f83116 commit afb7861
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions libraries/app/database_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1822,6 +1822,15 @@ set<public_key_type> database_api_impl::get_potential_signatures( const signed_t
_db.get_global_properties().parameters.max_authority_depth
);

// Insert keys in required "other" authories
flat_set<account_id_type> required_active;
flat_set<account_id_type> required_owner;
vector<authority> other;
trx.get_required_authorities( required_active, required_owner, other );
for( const auto& auth : other )
for( const auto& key : auth.get_keys() )
result.insert( key );

wdump((result));
return result;
}
Expand Down

0 comments on commit afb7861

Please sign in to comment.