BitShares-Core  5.0.0
BitShares blockchain implementation and command-line interface software
Public Member Functions | Public Attributes | List of all members
graphene::protocol::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...
 
uint16_t num_committee_voted () const
 
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 39 of file account.hpp.

Member Function Documentation

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

Whether this account is voting.

Definition at line 62 of file account.hpp.

uint16_t graphene::protocol::account_options::num_committee_voted ( ) const
inline

Definition at line 67 of file account.hpp.

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

Definition at line 152 of file account.cpp.

Member Data Documentation

extensions_type graphene::protocol::account_options::extensions

Definition at line 59 of file account.hpp.

public_key_type graphene::protocol::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 44 of file account.hpp.

uint16_t graphene::protocol::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 55 of file account.hpp.

uint16_t graphene::protocol::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 52 of file account.hpp.

flat_set<vote_id_type> graphene::protocol::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 58 of file account.hpp.

account_id_type graphene::protocol::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 48 of file account.hpp.


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