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

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

#include <transaction.hpp>

Inheritance diagram for graphene::protocol::processed_transaction:
graphene::protocol::precomputable_transaction graphene::protocol::signed_transaction graphene::protocol::transaction

Public Member Functions

 processed_transaction (const signed_transaction &trx=signed_transaction())
 
virtual ~processed_transaction ()=default
 
digest_type merkle_digest () const
 
- Public Member Functions inherited from graphene::protocol::precomputable_transaction
 precomputable_transaction ()
 
 precomputable_transaction (const signed_transaction &tx)
 
 precomputable_transaction (signed_transaction &&tx)
 
virtual ~precomputable_transaction ()=default
 
virtual const transaction_id_typeid () const override
 
virtual void validate () const override
 
virtual const flat_set< public_key_type > & get_signature_keys (const chain_id_type &chain_id) const override
 Extract public keys from signatures with given chain ID. More...
 
virtual uint64_t get_packed_size () const override
 
- Public Member Functions inherited from graphene::protocol::signed_transaction
 signed_transaction (const transaction &trx=transaction())
 
virtual ~signed_transaction ()=default
 
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, bool allow_non_immediate_owner, bool ignore_custom_operation_required_authorities, 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, const custom_authority_lookup &get_custom, bool allow_non_immediate_owner, bool ignore_custom_operation_required_auths, 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, const custom_authority_lookup &get_custom, bool allow_non_immediate_owner, bool ignore_custom_operation_required_auths, uint32_t max_recursion=GRAPHENE_MAX_SIG_CHECK_DEPTH) const
 
void clear ()
 
void clear_signatures ()
 
- Public Member Functions inherited from graphene::protocol::transaction
virtual ~transaction ()=default
 
digest_type digest () const
 Calculate the digest for a transaction. 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, bool ignore_custom_operation_required_auths) const
 

Public Attributes

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

Additional Inherited Members

- Protected Member Functions inherited from graphene::protocol::transaction
digest_type sig_digest (const chain_id_type &chain_id) const
 
- Protected Attributes inherited from graphene::protocol::precomputable_transaction
bool _validated = false
 
uint64_t _packed_size = 0
 
- Protected Attributes inherited from graphene::protocol::signed_transaction
flat_set< public_key_type_signees
 
- Protected Attributes inherited from graphene::protocol::transaction
transaction_id_type _tx_id_buffer
 

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 292 of file transaction.hpp.

Constructor & Destructor Documentation

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

Definition at line 294 of file transaction.hpp.

virtual graphene::protocol::processed_transaction::~processed_transaction ( )
virtualdefault

Member Function Documentation

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

Definition at line 36 of file transaction.cpp.

Member Data Documentation

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

Definition at line 298 of file transaction.hpp.


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