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

captures the result of evaluating the operations contained in the transaction More...

#include <transaction.hpp>

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

Public Member Functions

 processed_transaction (const signed_transaction &trx=signed_transaction())
 
digest_type merkle_digest () const
 
- Public Member Functions inherited from graphene::chain::signed_transaction
 signed_transaction (const transaction &trx=transaction())
 
const signature_typesign (const private_key_type &key, const chain_id_type &chain_id)
 
signature_type sign (const private_key_type &key, const chain_id_type &chain_id) const
 
set< public_key_typeget_required_signatures (const chain_id_type &chain_id, const flat_set< public_key_type > &available_keys, const std::function< const authority *(account_id_type)> &get_active, const std::function< const authority *(account_id_type)> &get_owner, uint32_t max_recursion=GRAPHENE_MAX_SIG_CHECK_DEPTH) const
 
void verify_authority (const chain_id_type &chain_id, const std::function< const authority *(account_id_type)> &get_active, const std::function< const authority *(account_id_type)> &get_owner, uint32_t max_recursion=GRAPHENE_MAX_SIG_CHECK_DEPTH) const
 
set< public_key_typeminimize_required_signatures (const chain_id_type &chain_id, const flat_set< public_key_type > &available_keys, const std::function< const authority *(account_id_type)> &get_active, const std::function< const authority *(account_id_type)> &get_owner, uint32_t max_recursion=GRAPHENE_MAX_SIG_CHECK_DEPTH) const
 
const flat_set< public_key_type > & get_signature_keys (const chain_id_type &chain_id) const
 Extract public keys from signatures with given chain ID. More...
 
void clear ()
 Removes all operations, signatures and signees. More...
 
void clear_signatures ()
 Removes all signatures and signees. More...
 
- Public Member Functions inherited from graphene::chain::transaction
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

vector< operation_resultoperation_results
 
- Public Attributes inherited from graphene::chain::signed_transaction
vector< signature_typesignatures
 
flat_set< public_key_typesignees
 
- Public Attributes inherited from graphene::chain::transaction
uint16_t ref_block_num = 0
 
uint32_t ref_block_prefix = 0
 
fc::time_point_sec expiration
 
vector< operationoperations
 
extensions_type extensions
 

Detailed Description

captures the result of evaluating the operations contained in the transaction

When processing a transaction some operations generate new object IDs and these IDs cannot be known until the transaction is actually included into a block. When a block is produced these new ids are captured and included with every transaction. The index in operation_results should correspond to the same index in operations.

If an operation did not create any new object IDs then 0 should be returned.

Definition at line 215 of file transaction.hpp.

Constructor & Destructor Documentation

◆ processed_transaction()

graphene::chain::processed_transaction::processed_transaction ( const signed_transaction trx = signed_transaction())
inline

Definition at line 217 of file transaction.hpp.

Member Function Documentation

◆ merkle_digest()

digest_type graphene::chain::processed_transaction::merkle_digest ( ) const

Definition at line 34 of file transaction.cpp.

Member Data Documentation

◆ operation_results

vector<operation_result> graphene::chain::processed_transaction::operation_results

Definition at line 220 of file transaction.hpp.


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