Fix #25 - listing all assets when given empty string

This commit is contained in:
Daniel Larimer 2015-06-09 16:31:07 -04:00
parent 666ffd07ae
commit d57c0e0031

View file

@ -245,6 +245,10 @@ namespace graphene { namespace app {
result.reserve(limit);
auto itr = assets_by_symbol.lower_bound(lower_bound_symbol);
if( lower_bound_symbol == "" )
itr = assets_by_symbol.begin();
while(limit-- && itr != assets_by_symbol.end())
result.emplace_back(*itr++);