Scorum
process_user_activity.cpp
Go to the documentation of this file.
2 
3 #include <scorum/account_identity/owned.hpp>
4 
6 
7 namespace scorum {
8 namespace chain {
9 
10 namespace database_ns {
11 
13 
14 user_activity_context::user_activity_context(data_service_factory_i& services, const signed_transaction& trx)
15  : _services(services)
16  , _trx(trx)
17 {
18 }
19 
21 {
22  fc::flat_set<account_name_type> result;
23  account_identity::transaction_get_owned_accounts(ctx.transaction(), result);
24 
25  account_registration_bonus_service_i& account_registration_bonus_service
26  = ctx.services().account_registration_bonus_service();
27 
28  for (const account_name_type& name : result)
29  {
30  account_registration_bonus_service.remove_if_exist(name);
31  }
32 }
33 }
34 }
35 }
user_activity_context(data_service_factory_i &services, const signed_transaction &)
fc::fixed_string_16 account_name_type
Definition: types.hpp:62
Definition: asset.cpp:15
virtual void remove_if_exist(const account_name_type &)=0