Bitshares-Core  2.0.181105
BitShares blockchain implementation and command-line interface software
Public Member Functions | Public Attributes | List of all members
graphene::chain::transaction Struct Reference

groups operations that should be applied atomically More...

#include <transaction.hpp>

Inheritance diagram for graphene::chain::transaction:
graphene::chain::signed_transaction graphene::chain::processed_transaction

Public Member Functions

digest_type digest () const
 Calculate the digest for a transaction. More...
 
transaction_id_type id () const
 
void validate () const
 
digest_type sig_digest (const chain_id_type &chain_id) const
 Calculate the digest used for signature validation. More...
 
void set_expiration (fc::time_point_sec expiration_time)
 
void set_reference_block (const block_id_type &reference_block)
 
template<typename Visitor >
vector< typename Visitor::result_type > visit (Visitor &&visitor)
 visit all operations More...
 
template<typename Visitor >
vector< typename Visitor::result_type > visit (Visitor &&visitor) const
 
void get_required_authorities (flat_set< account_id_type > &active, flat_set< account_id_type > &owner, vector< authority > &other) const
 

Public Attributes

uint16_t ref_block_num = 0
 
uint32_t ref_block_prefix = 0
 
fc::time_point_sec expiration
 
vector< operationoperations
 
extensions_type extensions
 

Detailed Description

groups operations that should be applied atomically

Definition at line 65 of file transaction.hpp.

Member Function Documentation

◆ digest()

digest_type graphene::chain::transaction::digest ( ) const

Calculate the digest for a transaction.

Definition at line 41 of file transaction.cpp.

◆ get_required_authorities()

void graphene::chain::transaction::get_required_authorities ( flat_set< account_id_type > &  active,
flat_set< account_id_type > &  owner,
vector< authority > &  other 
) const

Definition at line 98 of file transaction.cpp.

◆ id()

graphene::chain::transaction_id_type graphene::chain::transaction::id ( ) const

Definition at line 63 of file transaction.cpp.

◆ set_expiration()

void graphene::chain::transaction::set_expiration ( fc::time_point_sec  expiration_time)

Definition at line 87 of file transaction.cpp.

◆ set_reference_block()

void graphene::chain::transaction::set_reference_block ( const block_id_type reference_block)

Definition at line 92 of file transaction.cpp.

◆ sig_digest()

digest_type graphene::chain::transaction::sig_digest ( const chain_id_type chain_id) const

Calculate the digest used for signature validation.

Definition at line 48 of file transaction.cpp.

◆ validate()

void graphene::chain::transaction::validate ( ) const

Definition at line 56 of file transaction.cpp.

◆ visit() [1/2]

template<typename Visitor >
vector<typename Visitor::result_type> graphene::chain::transaction::visit ( Visitor &&  visitor)
inline

visit all operations

Definition at line 99 of file transaction.hpp.

◆ visit() [2/2]

template<typename Visitor >
vector<typename Visitor::result_type> graphene::chain::transaction::visit ( Visitor &&  visitor) const
inline

Definition at line 107 of file transaction.hpp.

Member Data Documentation

◆ expiration

fc::time_point_sec graphene::chain::transaction::expiration

This field specifies the absolute expiration for this transaction.

Definition at line 82 of file transaction.hpp.

◆ extensions

extensions_type graphene::chain::transaction::extensions

Definition at line 85 of file transaction.hpp.

◆ operations

vector<operation> graphene::chain::transaction::operations

Definition at line 84 of file transaction.hpp.

◆ ref_block_num

uint16_t graphene::chain::transaction::ref_block_num = 0

Least significant 16 bits from the reference block number. If relative_expiration is zero, this field must be zero as well.

Definition at line 71 of file transaction.hpp.

◆ ref_block_prefix

uint32_t graphene::chain::transaction::ref_block_prefix = 0

The first non-block-number 32-bits of the reference block ID. Recall that block IDs have 32 bits of block number followed by the actual block hash, so this field should be set using the second 32 bits in the block_id_type

Definition at line 77 of file transaction.hpp.


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