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::transaction_history_object Class Reference

#include <transaction_history_object.hpp>

Inheritance diagram for graphene::chain::transaction_history_object:
graphene::db::abstract_object< transaction_history_object, implementation_ids, impl_transaction_history_object_type > graphene::db::base_abstract_object< transaction_history_object > graphene::db::object

Public Member Functions

time_point_sec get_expiration () const
- Public Member Functions inherited from graphene::db::abstract_object< transaction_history_object, implementation_ids, impl_transaction_history_object_type >
 abstract_object ()
object_id< SpaceID, TypeID > get_id () const
- Public Member Functions inherited from graphene::db::base_abstract_object< transaction_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

signed_transaction trx
transaction_id_type trx_id
- Public Attributes inherited from graphene::db::object
object_id_type id

Additional Inherited Members

- Static Public Attributes inherited from graphene::db::abstract_object< transaction_history_object, implementation_ids, impl_transaction_history_object_type >
static constexpr uint8_t space_id
static constexpr uint8_t type_id

Detailed Description

The purpose of this object is to enable the detection of duplicate transactions. When a transaction is included in a block a transaction_history_object is added. At the end of block processing all transaction_history_objects that have expired can be removed from the index.

Definition at line 44 of file transaction_history_object.hpp.

Member Function Documentation

◆ get_expiration()

time_point_sec graphene::chain::transaction_history_object::get_expiration ( ) const

Definition at line 51 of file transaction_history_object.hpp.

Member Data Documentation

◆ trx

signed_transaction graphene::chain::transaction_history_object::trx

Definition at line 48 of file transaction_history_object.hpp.

◆ trx_id

transaction_id_type graphene::chain::transaction_history_object::trx_id

Definition at line 49 of file transaction_history_object.hpp.

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