Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
sysio::chain::transaction_receipt Struct Reference

#include <block.hpp>

Inheritance diagram for sysio::chain::transaction_receipt:
Collaboration diagram for sysio::chain::transaction_receipt:

Public Member Functions

 transaction_receipt ()
 
 transaction_receipt (const transaction_id_type &tid)
 
 transaction_receipt (const packed_transaction &ptrx)
 
digest_type digest () const
 
- Public Member Functions inherited from sysio::chain::transaction_receipt_header
 transaction_receipt_header ()
 
 transaction_receipt_header (status_enum s)
 

Public Attributes

std::variant< transaction_id_type, packed_transactiontrx
 
- Public Attributes inherited from sysio::chain::transaction_receipt_header
fc::enum_type< uint8_t, status_enumstatus
 
uint32_t cpu_usage_us = 0
 total billed CPU usage (microseconds)
 
fc::unsigned_int net_usage_words
 total billed NET usage, so we can reconstruct resource state when skipping context free data... hard failures...
 

Additional Inherited Members

- Public Types inherited from sysio::chain::transaction_receipt_header
enum  status_enum {
  executed = 0 , soft_fail = 1 , hard_fail = 2 , delayed = 3 ,
  expired = 4
}
 

Detailed Description

Definition at line 33 of file block.hpp.

Constructor & Destructor Documentation

◆ transaction_receipt() [1/3]

sysio::chain::transaction_receipt::transaction_receipt ( )
inline

Definition at line 35 of file block.hpp.

◆ transaction_receipt() [2/3]

sysio::chain::transaction_receipt::transaction_receipt ( const transaction_id_type & tid)
inlineexplicit

Definition at line 36 of file block.hpp.

36:transaction_receipt_header(executed),trx(tid){}
std::variant< transaction_id_type, packed_transaction > trx
Definition block.hpp:39

◆ transaction_receipt() [3/3]

sysio::chain::transaction_receipt::transaction_receipt ( const packed_transaction & ptrx)
inlineexplicit

Definition at line 37 of file block.hpp.

37:transaction_receipt_header(executed),trx(std::in_place_type<packed_transaction>, ptrx){}

Member Function Documentation

◆ digest()

digest_type sysio::chain::transaction_receipt::digest ( ) const
inline

Definition at line 41 of file block.hpp.

41 {
42 digest_type::encoder enc;
43 fc::raw::pack( enc, status );
46 if( std::holds_alternative<transaction_id_type>(trx) )
47 fc::raw::pack( enc, std::get<transaction_id_type>(trx) );
48 else
49 fc::raw::pack( enc, std::get<packed_transaction>(trx).packed_digest() );
50 return enc.result();
51 }
void pack(Stream &s, const std::deque< T > &value)
Definition raw.hpp:531
fc::unsigned_int net_usage_words
total billed NET usage, so we can reconstruct resource state when skipping context free data....
Definition block.hpp:30
fc::enum_type< uint8_t, status_enum > status
Definition block.hpp:28
uint32_t cpu_usage_us
total billed CPU usage (microseconds)
Definition block.hpp:29
Here is the call graph for this function:

Member Data Documentation

◆ trx

std::variant<transaction_id_type, packed_transaction> sysio::chain::transaction_receipt::trx

Definition at line 39 of file block.hpp.


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