Scorum
dev_committee_initialiazator.cpp
Go to the documentation of this file.
2 
6 
7 namespace scorum {
8 namespace chain {
9 namespace genesis {
10 
12 {
13  auto& committee_service = ctx.services().development_committee_service();
14  auto& acount_service = ctx.services().account_service();
15 
16  FC_ASSERT(ctx.genesis_state().development_committee.size(), "Development committee could not be empty.");
17 
18  for (const auto& member : ctx.genesis_state().development_committee)
19  {
20  acount_service.check_account_existence(member);
21  }
22 
23  for (const auto& member : ctx.genesis_state().development_committee)
24  {
25  committee_service.add_member(member);
26  }
27 }
28 
29 } // namespace genesis
30 } // namespace scorum
31 } // namespace chain
const genesis_state_type & genesis_state() const
data_service_factory_i & services() const
Definition: asset.cpp:15
std::vector< std::string > development_committee