Skip to content

Commit

Permalink
Increase get_account_history limit to 10,000 steemit#521
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Vandeberg committed Jan 18, 2017
1 parent 443ce69 commit 292f341
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/app/database_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1222,7 +1222,7 @@ map< uint32_t, applied_operation > database_api::get_account_history( string acc
{
return my->_db.with_read_lock( [&]()
{
FC_ASSERT( limit <= 2000, "Limit of ${l} is greater than maxmimum allowed", ("l",limit) );
FC_ASSERT( limit <= 10000, "Limit of ${l} is greater than maxmimum allowed", ("l",limit) );
FC_ASSERT( from >= limit, "From must be greater than limit" );
// idump((account)(from)(limit));
const auto& idx = my->_db.get_index<account_history_index>().indices().get<by_account>();
Expand Down Expand Up @@ -1908,7 +1908,7 @@ state database_api::get_state( string path )const
}
auto& eacnt = _state.accounts[acnt];
if( part[1] == "transfers" ) {
auto history = get_account_history( acnt, uint64_t(-1), 1000 );
auto history = get_account_history( acnt, uint64_t(-1), 10000 );
for( auto& item : history ) {
switch( item.second.op.which() ) {
case operation::tag<transfer_to_vesting_operation>::value:
Expand Down

0 comments on commit 292f341

Please sign in to comment.