diff --git a/libraries/app/api.cpp b/libraries/app/api.cpp index 2b907dd6..5281c0d9 100644 --- a/libraries/app/api.cpp +++ b/libraries/app/api.cpp @@ -498,7 +498,8 @@ namespace graphene { namespace app { else start = min( account(db).statistics(db).total_ops, start ); - if( start >= stop && start > 0 ) + + if( start >= stop && start > 0 && limit > 0 ) { const auto& hist_idx = db.get_index_type(); const auto& by_seq_idx = hist_idx.indices().get();