BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
Go to the documentation of this file.
28 namespace graphene {
namespace protocol {
37 template<
class ...Args>
66 uint64_t auth_weights = 0;
67 for(
const auto& item :
account_auths ) auth_weights += item.second;
68 for(
const auto& item :
key_auths ) auth_weights += item.second;
69 for(
const auto& item :
address_auths ) auth_weights += item.second;
73 template<
typename AuthType>
78 template<
typename AuthType,
class ...Args>
87 vector<public_key_type> result;
90 result.push_back(k.first);
95 vector<address> result;
98 result.push_back(k.first);
130 flat_set<account_id_type>& result,
uint32_t weight_threshold
void add_authority_accounts(flat_set< account_id_type > &result, const authority &a)
flat_map< address, weight_type > address_auths
void add_authority(account_id_type k, weight_type w)
flat_map< public_key_type, weight_type > key_auths
flat_map< account_id_type, weight_type > account_auths
friend bool operator!=(const authority &a, const authority &b)
void add_authority(const address &k, weight_type w)
vector< public_key_type > get_keys() const
#define GRAPHENE_DECLARE_EXTERNAL_SERIALIZATION(type)
static authority null_authority()
bool is_impossible() const
uint32_t num_auths() const
authority(uint32_t threshhold, Args... auths)
void add_authority(const public_key_type &k, weight_type w)
FC_REFLECT_ENUM(graphene::net::core_message_type_enum,(trx_message_type)(block_message_type)(core_message_type_first)(item_ids_inventory_message_type)(blockchain_item_ids_inventory_message_type)(fetch_blockchain_item_ids_message_type)(fetch_items_message_type)(item_not_available_message_type)(hello_message_type)(connection_accepted_message_type)(connection_rejected_message_type)(address_request_message_type)(address_message_type)(closing_connection_message_type)(current_time_request_message_type)(current_time_reply_message_type)(check_firewall_message_type)(check_firewall_reply_message_type)(get_current_connections_request_message_type)(get_current_connections_reply_message_type)(core_message_type_last))(different_chain)(already_connected)(connected_to_self)(not_accepting_connections)(blocked)(invalid_hello_message)(client_too_old))(inbound)(outbound))(firewalled)(not_firewalled))(unable_to_connect)(connection_successful)) namespace std
void add_authorities(AuthType k, weight_type w, Args... auths)
friend bool operator==(const authority &a, const authority &b)
#define FC_REFLECT(TYPE, MEMBERS)
Specializes fc::reflector for TYPE.
#define GRAPHENE_NULL_ACCOUNT
Represents the canonical account with NO authority (nobody can access funds in null account)
vector< address > get_addresses() const
Identifies a weighted set of keys and accounts that must approve operations.
void add_authorities(AuthType k, weight_type w)
a 160 bit hash of a public key