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

tracks the history of all logical operations on blockchain state More...

#include <operation_history_object.hpp>

Inheritance diagram for graphene::chain::operation_history_object:
graphene::db::abstract_object< operation_history_object, protocol_ids, operation_history_object_type > graphene::db::base_abstract_object< operation_history_object > graphene::db::object

Public Member Functions

 operation_history_object (const operation &o)
 
 operation_history_object ()=default
 
 operation_history_object (const operation &o, uint32_t bn, uint16_t tib, uint16_t oit, uint32_t vo, bool iv, const time_point_sec &bt)
 
- Public Member Functions inherited from graphene::db::abstract_object< operation_history_object, protocol_ids, operation_history_object_type >
 abstract_object ()
 
object_id< SpaceID, TypeID > get_id () const
 
- Public Member Functions inherited from graphene::db::base_abstract_object< operation_history_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
 

Public Attributes

operation op
 
operation_result result
 
uint32_t block_num = 0
 
uint16_t trx_in_block = 0
 
uint16_t op_in_trx = 0
 
uint32_t virtual_op = 0
 
bool is_virtual = false
 
time_point_sec block_time
 
- Public Attributes inherited from graphene::db::object
object_id_type id
 

Additional Inherited Members

- Static Public Attributes inherited from graphene::db::abstract_object< operation_history_object, protocol_ids, operation_history_object_type >
static constexpr uint8_t space_id
 
static constexpr uint8_t type_id
 

Detailed Description

tracks the history of all logical operations on blockchain state

All operations and virtual operations result in the creation of an operation_history_object that is maintained on disk as a stack. Each real or virtual operation is assigned a unique ID / sequence number that it can be referenced by.

Note
by default these objects are not tracked, the account_history_plugin must be loaded fore these objects to be maintained.
this object is READ ONLY it can never be modified

Definition at line 48 of file operation_history_object.hpp.

Constructor & Destructor Documentation

◆ operation_history_object() [1/3]

graphene::chain::operation_history_object::operation_history_object ( const operation o)
inlineexplicit

Definition at line 52 of file operation_history_object.hpp.

◆ operation_history_object() [2/3]

graphene::chain::operation_history_object::operation_history_object ( )
default

◆ operation_history_object() [3/3]

graphene::chain::operation_history_object::operation_history_object ( const operation o,
uint32_t  bn,
uint16_t  tib,
uint16_t  oit,
uint32_t  vo,
bool  iv,
const time_point_sec bt 
)
inline

Definition at line 54 of file operation_history_object.hpp.

Member Data Documentation

◆ block_num

uint32_t graphene::chain::operation_history_object::block_num = 0

the block that caused this operation

Definition at line 61 of file operation_history_object.hpp.

◆ block_time

time_point_sec graphene::chain::operation_history_object::block_time

The timestamp of the block that caused this operation

Definition at line 71 of file operation_history_object.hpp.

◆ is_virtual

bool graphene::chain::operation_history_object::is_virtual = false

Whether this is a virtual operation

Definition at line 69 of file operation_history_object.hpp.

◆ op

operation graphene::chain::operation_history_object::op

Definition at line 58 of file operation_history_object.hpp.

◆ op_in_trx

uint16_t graphene::chain::operation_history_object::op_in_trx = 0

the operation within the transaction

Definition at line 65 of file operation_history_object.hpp.

◆ result

operation_result graphene::chain::operation_history_object::result

Definition at line 59 of file operation_history_object.hpp.

◆ trx_in_block

uint16_t graphene::chain::operation_history_object::trx_in_block = 0

the transaction in the block

Definition at line 63 of file operation_history_object.hpp.

◆ virtual_op

uint32_t graphene::chain::operation_history_object::virtual_op = 0

any virtual operations implied by operation in block

Definition at line 67 of file operation_history_object.hpp.


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