Commit 74f18672 authored by Dan Notestein's avatar Dan Notestein
Browse files

Merge branch 'fix_ah_sequence_indexing', automated rebase didn't work

parents 8c005fce c319da1a
......@@ -81,7 +81,7 @@ struct operation_visitor
}
auto hist_itr = hist_idx.lower_bound( boost::make_tuple( item, uint32_t(-1) ) );
uint32_t sequence = 1;
uint32_t sequence = 0;
if( hist_itr != hist_idx.end() && hist_itr->account == item )
sequence = hist_itr->sequence + 1;
......
......@@ -92,7 +92,7 @@ DEFINE_API_IMPL( account_history_api_chainbase_impl, get_transaction )
DEFINE_API_IMPL( account_history_api_chainbase_impl, get_account_history )
{
FC_ASSERT( args.limit <= 1000, "limit of ${l} is greater than maxmimum allowed", ("l",args.limit) );
FC_ASSERT( args.start >= args.limit, "start must be greater than limit" );
FC_ASSERT( args.start >= args.limit-1, "start must be greater than or equal to limit-1 (start is 0-based index)" );
FC_ASSERT(args.include_reversible.valid() == false, "Supported only in AH-Rocksdb plugin");
......@@ -159,7 +159,7 @@ DEFINE_API_IMPL( account_history_api_rocksdb_impl, get_ops_in_block )
DEFINE_API_IMPL( account_history_api_rocksdb_impl, get_account_history )
{
FC_ASSERT( args.limit <= 1000, "limit of ${l} is greater than maxmimum allowed", ("l",args.limit) );
FC_ASSERT( args.start >= args.limit, "start must be greater than limit" );
FC_ASSERT( args.start >= args.limit-1, "start must be greater than or equal to limit-1 (start is 0-based index)" );
get_account_history_return result;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment