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

#include <block.hpp>

Inheritance diagram for sysio::chain::transaction_receipt_header:
Collaboration diagram for sysio::chain::transaction_receipt_header:

Public Types

enum  status_enum {
  executed = 0 , soft_fail = 1 , hard_fail = 2 , delayed = 3 ,
  expired = 4
}
 

Public Member Functions

 transaction_receipt_header ()
 
 transaction_receipt_header (status_enum s)
 

Public Attributes

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...
 

Friends

bool operator== (const transaction_receipt_header &lhs, const transaction_receipt_header &rhs)
 

Detailed Description

When a transaction is referenced by a block it could imply one of several outcomes which describe the state-transition undertaken by the block producer.

Definition at line 12 of file block.hpp.

Member Enumeration Documentation

◆ status_enum

Enumerator
executed 

succeed, no error handler executed

soft_fail 

objectively failed (not executed), error handler executed

hard_fail 

objectively failed and error handler objectively failed thus no state change

delayed 

transaction delayed/deferred/scheduled for future execution

expired 

transaction expired and storage space refuned to user

Definition at line 13 of file block.hpp.

13 {
14 executed = 0,
15 soft_fail = 1,
16 hard_fail = 2,
17 delayed = 3,
18 expired = 4
19 };
@ delayed
transaction delayed/deferred/scheduled for future execution
Definition block.hpp:17
@ soft_fail
objectively failed (not executed), error handler executed
Definition block.hpp:15
@ hard_fail
objectively failed and error handler objectively failed thus no state change
Definition block.hpp:16
@ expired
transaction expired and storage space refuned to user
Definition block.hpp:18

Constructor & Destructor Documentation

◆ transaction_receipt_header() [1/2]

sysio::chain::transaction_receipt_header::transaction_receipt_header ( )
inline

Definition at line 21 of file block.hpp.

fc::enum_type< uint8_t, status_enum > status
Definition block.hpp:28

◆ transaction_receipt_header() [2/2]

sysio::chain::transaction_receipt_header::transaction_receipt_header ( status_enum s)
inlineexplicit

Definition at line 22 of file block.hpp.

22:status(s){}
char * s

Friends And Related Symbol Documentation

◆ operator==

bool operator== ( const transaction_receipt_header & lhs,
const transaction_receipt_header & rhs )
friend

Definition at line 24 of file block.hpp.

24 {
25 return std::tie(lhs.status, lhs.cpu_usage_us, lhs.net_usage_words) == std::tie(rhs.status, rhs.cpu_usage_us, rhs.net_usage_words);
26 }

Member Data Documentation

◆ cpu_usage_us

uint32_t sysio::chain::transaction_receipt_header::cpu_usage_us = 0

Definition at line 29 of file block.hpp.

◆ net_usage_words

fc::unsigned_int sysio::chain::transaction_receipt_header::net_usage_words

Definition at line 30 of file block.hpp.

◆ status

fc::enum_type<uint8_t,status_enum> sysio::chain::transaction_receipt_header::status

Definition at line 28 of file block.hpp.


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