BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
Public Attributes | List of all members
graphene::chain::special_authority_object Class Reference

#include <special_authority_object.hpp>

Inheritance diagram for graphene::chain::special_authority_object:
graphene::db::abstract_object< special_authority_object, implementation_ids, impl_special_authority_object_type > graphene::db::base_abstract_object< special_authority_object > graphene::db::object

Public Attributes

account_id_type account
- Public Attributes inherited from graphene::db::object
object_id_type id

Additional Inherited Members

- Public Member Functions inherited from graphene::db::abstract_object< special_authority_object, implementation_ids, impl_special_authority_object_type >
 abstract_object ()
object_id< SpaceID, TypeID > get_id () const
- Public Member Functions inherited from graphene::db::base_abstract_object< special_authority_object >
std::unique_ptr< objectclone () const override
void move_from (object &obj) override
fc::variant to_variant () const override
std::vector< char > pack () const override
 object ()=default
 object (uint8_t space_id, uint8_t type_id)
- Public Member Functions inherited from graphene::db::object
 object ()=default
 object (uint8_t space_id, uint8_t type_id)
virtual ~object ()=default
virtual std::unique_ptr< objectclone () const =0
virtual fc::variant to_variant () const =0
virtual std::vector< char > pack () const =0
- Static Public Attributes inherited from graphene::db::abstract_object< special_authority_object, implementation_ids, impl_special_authority_object_type >
static constexpr uint8_t space_id
static constexpr uint8_t type_id

Detailed Description

special_authority_object only exists to help with a specific indexing problem. We want to be able to iterate over all accounts that contain a special authority. However, accounts which have a special_authority are very rare. So rather than indexing account_object by the special_authority fields (requiring additional bookkeeping for every account), we instead maintain a special_authority_object pointing to each account which has special_authority (requiring additional bookkeeping only for every account which has special_authority).

This class is an implementation detail.

Definition at line 42 of file special_authority_object.hpp.

Member Data Documentation

◆ account

account_id_type graphene::chain::special_authority_object::account

Definition at line 46 of file special_authority_object.hpp.

The documentation for this class was generated from the following file: