From 3273d1f7b67dc55606f5f8622e68877c70e80256 Mon Sep 17 00:00:00 2001 From: Daniel Larimer Date: Mon, 26 Oct 2015 09:52:40 -0400 Subject: [PATCH] fetching up to 200 items --- libraries/app/api.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/app/api.cpp b/libraries/app/api.cpp index 9533588b..8989038d 100644 --- a/libraries/app/api.cpp +++ b/libraries/app/api.cpp @@ -371,7 +371,7 @@ namespace graphene { namespace app { FC_ASSERT(_app.chain_database()); const auto& db = *_app.chain_database(); vector result; - result.reserve(100); + result.reserve(200); if( a > b ) std::swap(a,b); @@ -379,7 +379,7 @@ namespace graphene { namespace app { const auto& by_key_idx = bidx.indices().get(); auto itr = by_key_idx.lower_bound( bucket_key( a, b, bucket_seconds, start ) ); - while( itr != by_key_idx.end() && itr->key.open <= end && result.size() < 100 ) + while( itr != by_key_idx.end() && itr->key.open <= end && result.size() < 200 ) { if( !(itr->key.base == a && itr->key.quote == b && itr->key.seconds == bucket_seconds) ) {