diff --git a/libraries/chain/asset_object.cpp b/libraries/chain/asset_object.cpp index f357e541..82951d79 100644 --- a/libraries/chain/asset_object.cpp +++ b/libraries/chain/asset_object.cpp @@ -187,10 +187,10 @@ vector asset_object::get_holders( database& db ) const return holders; } -vector asset_object::get_ticket_ids( database& db ) const +vector asset_object::get_ticket_ids( database& db ) const { auto& asset_bal_idx = db.get_index_type< account_balance_index >().indices().get< by_asset_balance >(); - vector ids; + vector ids; const auto range = asset_bal_idx.equal_range( boost::make_tuple( get_id() ) ); for( const account_balance_object& bal : boost::make_iterator_range( range.first, range.second ) ) @@ -243,7 +243,7 @@ map< account_id_type, vector< uint16_t > > asset_object::distribute_winners_part transaction_evaluation_state eval( &db ); auto holders = get_holders( db ); - vector ticket_ids = get_ticket_ids(db); + vector ticket_ids = get_ticket_ids(db); FC_ASSERT( dynamic_data( db ).current_supply == holders.size() ); map > structurized_participants; for( account_id_type holder : holders ) @@ -274,7 +274,7 @@ map< account_id_type, vector< uint16_t > > asset_object::distribute_winners_part reward_op.winner = holders[winner_num]; if(db.head_block_time() > HARDFORK_5050_1_TIME && ticket_ids.size() >= winner_num) { - const static_variant tkt_id = ticket_ids[winner_num]; + const static_variant tkt_id = ticket_ids[winner_num]; reward_op.winner_ticket_id = tkt_id; } reward_op.win_percentage = tickets[c]; diff --git a/libraries/chain/include/graphene/chain/asset_object.hpp b/libraries/chain/include/graphene/chain/asset_object.hpp index 95d36ed4..d8c65e89 100644 --- a/libraries/chain/include/graphene/chain/asset_object.hpp +++ b/libraries/chain/include/graphene/chain/asset_object.hpp @@ -134,7 +134,7 @@ namespace graphene { namespace chain { optional lottery_options; time_point_sec get_lottery_expiration() const; vector get_holders( database& db ) const; - vector get_ticket_ids( database& db ) const; + vector get_ticket_ids( database& db ) const; void distribute_benefactors_part( database& db ); map< account_id_type, vector< uint16_t > > distribute_winners_part( database& db ); void distribute_sweeps_holders_part( database& db ); diff --git a/libraries/chain/include/graphene/chain/protocol/lottery_ops.hpp b/libraries/chain/include/graphene/chain/protocol/lottery_ops.hpp index 0bc64129..4f512bce 100644 --- a/libraries/chain/include/graphene/chain/protocol/lottery_ops.hpp +++ b/libraries/chain/include/graphene/chain/protocol/lottery_ops.hpp @@ -52,7 +52,7 @@ namespace graphene { namespace chain { share_type calculate_fee( const fee_parameters_type& k )const; }; - typedef static_variant ticket_num; + typedef static_variant ticket_num; /** * @ingroup operations