From 8dd663aaf6d7409104dcc481caa18b911e5abe17 Mon Sep 17 00:00:00 2001 From: oxarbitrage Date: Wed, 10 May 2017 12:33:40 -0300 Subject: [PATCH] get_relative_account_history: adding limit > 0 check #279 (#281) --- libraries/app/api.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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();