refacxctor database_api to reduce redundancy
searching for phrase && args.limit <=
reveals that limit check is compeletly redundant and i think it should be moved to separate funtion.
Here i paste whole line that is redundant:
FC_ASSERT( 0 < args.limit && args.limit <= DATABASE_API_SINGLE_QUERY_LIMIT, "limit not set or too big" );