![]() |
Ethereum
PoC-8
The C++ Implementation of Ethereum
|
#include <TransactionReceipt.h>
Public Member Functions | |
| TransactionReceipt (bytesConstRef _rlp) | |
| TransactionReceipt (h256 const &_root, u256 const &_gasUsed, LogEntries const &_log) | |
| TransactionReceipt (uint8_t _status, u256 const &_gasUsed, LogEntries const &_log) | |
| bool | hasStatusCode () const |
| h256 const & | stateRoot () const |
| uint8_t | statusCode () const |
| u256 const & | cumulativeGasUsed () const |
| LogBloom const & | bloom () const |
| LogEntries const & | log () const |
| void | streamRLP (RLPStream &_s) const |
| bytes | rlp () const |
Transaction receipt, constructed either from RLP representation or from individual values. Either a state root or a status code is contained. m_hasStatusCode is true when it contains a status code. Empty state root is not included into RLP-encoding.
Definition at line 39 of file TransactionReceipt.h.
| TransactionReceipt::TransactionReceipt | ( | bytesConstRef | _rlp | ) |
Definition at line 31 of file TransactionReceipt.cpp.
| TransactionReceipt::TransactionReceipt | ( | h256 const & | _root, |
| u256 const & | _gasUsed, | ||
| LogEntries const & | _log | ||
| ) |
Definition at line 54 of file TransactionReceipt.cpp.
| TransactionReceipt::TransactionReceipt | ( | uint8_t | _status, |
| u256 const & | _gasUsed, | ||
| LogEntries const & | _log | ||
| ) |
Definition at line 61 of file TransactionReceipt.cpp.
|
inline |
Definition at line 55 of file TransactionReceipt.h.
|
inline |
Definition at line 54 of file TransactionReceipt.h.
| bool TransactionReceipt::hasStatusCode | ( | ) | const |
Definition at line 81 of file TransactionReceipt.cpp.
|
inline |
Definition at line 56 of file TransactionReceipt.h.
|
inline |
Definition at line 60 of file TransactionReceipt.h.
| h256 const & TransactionReceipt::stateRoot | ( | ) | const |
| TransactionReceiptVersionError | when the receipt has a status code instead of a state root. |
Definition at line 94 of file TransactionReceipt.cpp.
| uint8_t TransactionReceipt::statusCode | ( | ) | const |
| TransactionReceiptVersionError | when the receipt has a state root instead of a status code. |
Definition at line 86 of file TransactionReceipt.cpp.
| void TransactionReceipt::streamRLP | ( | RLPStream & | _s | ) | const |
Definition at line 68 of file TransactionReceipt.cpp.