Skip to content

Commit

Permalink
changes inside try
Browse files Browse the repository at this point in the history
  • Loading branch information
oxarbitrage committed Feb 20, 2018
1 parent 753b899 commit a0b87d2
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions libraries/app/api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,12 +303,9 @@ namespace graphene { namespace app {
FC_ASSERT( limit <= 100 );
vector<operation_history_object> result;
try {
optional<account_statistics_object> stats;
optional<account_transaction_history_object> node;
stats = account(db).statistics(db);
node = stats->most_recent_op(db);
if(start == operation_history_id_type() || start.instance.value > node->operation_id.instance.value)
start = node->operation_id;
const account_transaction_history_object& node = account(db).statistics(db).most_recent_op(db);
if(start == operation_history_id_type() || start.instance.value > node.operation_id.instance.value)
start = node.operation_id;
} catch(...) { return result; }

const auto& hist_idx = db.get_index_type<account_transaction_history_index>();
Expand Down

0 comments on commit a0b87d2

Please sign in to comment.