Add helper functions for multi_index_container (son_object)
This commit is contained in:
parent
cce2067a7d
commit
b982bd9180
1 changed files with 5 additions and 2 deletions
|
|
@ -78,6 +78,9 @@ namespace graphene { namespace chain {
|
||||||
void pay_son_fee(share_type pay, database& db);
|
void pay_son_fee(share_type pay, database& db);
|
||||||
bool has_valid_config()const;
|
bool has_valid_config()const;
|
||||||
bool has_valid_config(time_point_sec head_block_time)const;
|
bool has_valid_config(time_point_sec head_block_time)const;
|
||||||
|
|
||||||
|
inline vote_id_type get_vote_id_bitcoin() const { return vote_id_bitcoin; }
|
||||||
|
inline vote_id_type get_vote_id_hive() const { return vote_id_hive; }
|
||||||
};
|
};
|
||||||
|
|
||||||
struct by_account;
|
struct by_account;
|
||||||
|
|
@ -93,10 +96,10 @@ namespace graphene { namespace chain {
|
||||||
member<son_object, account_id_type, &son_object::son_account>
|
member<son_object, account_id_type, &son_object::son_account>
|
||||||
>,
|
>,
|
||||||
ordered_unique< tag<by_vote_id_bitcoin>,
|
ordered_unique< tag<by_vote_id_bitcoin>,
|
||||||
member<son_object, vote_id_type, &son_object::vote_id_bitcoin>
|
const_mem_fun<son_object, vote_id_type, &son_object::get_vote_id_bitcoin>
|
||||||
>,
|
>,
|
||||||
ordered_unique< tag<by_vote_id_hive>,
|
ordered_unique< tag<by_vote_id_hive>,
|
||||||
member<son_object, vote_id_type, &son_object::vote_id_hive>
|
const_mem_fun<son_object, vote_id_type, &son_object::get_vote_id_hive>
|
||||||
>
|
>
|
||||||
>
|
>
|
||||||
>;
|
>;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue