Skip to content

Commit

Permalink
#3593: Cleanup API object constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
sgerbino committed Feb 28, 2020
1 parent f8ae7cf commit ba90b8c
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,11 @@ struct rc_account_api_object
{
max_rc = get_maximum_rc( db.get_account( account ), rca );

db.get_index< chain::comment_index, chain::by_permlink >(); // works
db.get_index< rc_outdel_drc_edge_index, by_edge >(); // does not work
db.get_index< rc_outdel_drc_edge_index >().indices().get< by_edge >(); // works
for( const account_name_type& pool : delegation_slots )
for ( const account_name_type& pool : delegation_slots )
{
pool_delegation del;

db.get< rc_outdel_drc_edge_object, by_edge >( boost::make_tuple( pool, account, VESTS_SYMBOL ) ); // does not work
auto indel_edge = db.find< rc_outdel_drc_edge_object, by_edge >( boost::make_tuple( pool, account, VESTS_SYMBOL ) ); // does not work
auto indel_edge = db.find< rc_outdel_drc_edge_object, by_edge >( boost::make_tuple( pool, account, VESTS_SYMBOL ) );
if( indel_edge != nullptr )
{
del.rc_manabar = indel_edge->drc_manabar;
Expand Down

0 comments on commit ba90b8c

Please sign in to comment.