Bitshares-Core  2.0.181105
BitShares blockchain implementation and command-line interface software
Public Member Functions | Public Attributes | List of all members
graphene::chain::account_options Struct Reference

These are the fields which can be updated by the active authority. More...

#include <account.hpp>

Public Member Functions

bool is_voting () const
 Whether this account is voting. More...
 
void validate () const
 

Public Attributes

public_key_type memo_key
 
account_id_type voting_account = GRAPHENE_PROXY_TO_SELF_ACCOUNT
 
uint16_t num_witness = 0
 
uint16_t num_committee = 0
 
flat_set< vote_id_typevotes
 
extensions_type extensions
 

Detailed Description

These are the fields which can be updated by the active authority.

Definition at line 38 of file account.hpp.

Member Function Documentation

◆ is_voting()

bool graphene::chain::account_options::is_voting ( ) const
inline

Whether this account is voting.

Definition at line 61 of file account.hpp.

◆ validate()

void graphene::chain::account_options::validate ( ) const

Definition at line 150 of file account.cpp.

Member Data Documentation

◆ extensions

extensions_type graphene::chain::account_options::extensions

Definition at line 58 of file account.hpp.

◆ memo_key

public_key_type graphene::chain::account_options::memo_key

The memo key is the key this account will typically use to encrypt/sign transaction memos and other non- validated account activities. This field is here to prevent confusion if the active authority has zero or multiple keys in it.

Definition at line 43 of file account.hpp.

◆ num_committee

uint16_t graphene::chain::account_options::num_committee = 0

The number of active committee members this account votes the blockchain should appoint Must not exceed the actual number of committee members voted for in votes

Definition at line 54 of file account.hpp.

◆ num_witness

uint16_t graphene::chain::account_options::num_witness = 0

The number of active witnesses this account votes the blockchain should appoint Must not exceed the actual number of witnesses voted for in votes

Definition at line 51 of file account.hpp.

◆ votes

flat_set<vote_id_type> graphene::chain::account_options::votes

This is the list of vote IDs this account votes for. The weight of these votes is determined by this account's balance of core asset.

Definition at line 57 of file account.hpp.

◆ voting_account

account_id_type graphene::chain::account_options::voting_account = GRAPHENE_PROXY_TO_SELF_ACCOUNT

If this field is set to an account ID other than GRAPHENE_PROXY_TO_SELF_ACCOUNT, then this account's votes will be ignored; its stake will be counted as voting for the referenced account's selected votes instead.

Definition at line 47 of file account.hpp.


The documentation for this struct was generated from the following files: