15 template <
typename MemberIndexType>
18 std::set<account_name_type> ret;
20 const auto& committee_members = db.get_index<MemberIndexType>().indices().template get<by_account_name>();
22 for (
auto it = committee_members.lower_bound(lower_bound_name); it != committee_members.end(); ++it)
24 ret.insert(std::cref(it->account));
26 if (ret.size() >= limit)
tracks the blockchain state in an extensible manner
std::set< account_name_type > lookup_members(const database &db, const std::string &lower_bound_name, uint32_t limit)