#include <trx_finality_status_processing.hpp>
This class manages the processing related to the transaction finality status feature.
Definition at line 16 of file trx_finality_status_processing.hpp.
◆ trx_finality_status_processing()
Instantiate a new transaction retry processor
- Parameters
-
max_storage | - the maximum storage allotted to this feature |
Definition at line 43 of file trx_finality_status_processing.cpp.
44 : _my(new trx_finality_status_processing_impl(max_storage, success_duration, failure_duration))
45 {
46 }
◆ ~trx_finality_status_processing()
sysio::chain_apis::trx_finality_status_processing::~trx_finality_status_processing |
( |
| ) |
|
|
default |
◆ get_chain_state()
Definition at line 306 of file trx_finality_status_processing.cpp.
306 {
307 return { .head_id = _my->_head_block_id, .head_block_timestamp = _my->_head_block_timestamp, .irr_id = _my->_irr_block_id, .irr_block_timestamp = _my->_irr_block_timestamp, .earliest_tracked_block_id = _my->_earliest_tracked_block_id };
308 }
◆ get_storage_memory_size()
size_t sysio::chain_apis::trx_finality_status_processing::get_storage_memory_size |
( |
| ) |
const |
◆ get_trx_state()
Definition at line 310 of file trx_finality_status_processing.cpp.
310 {
311 auto iter = _my->_storage.find(id);
312 if (iter == _my->_storage.index().cend()) {
313 return {};
314 }
315
316 const char* status;
317 if (!iter->is_in_block()) {
319 status = "FAILED";
320 }
321 else {
322 status = iter->forked_out ? "FORKED_OUT" : "LOCALLY_APPLIED";
323 }
324 }
325 else {
326 const auto block_num = iter->block_num();
328 status = (block_num > lib) ? "IN_BLOCK" : "IRREVERSIBLE";
329 }
330 return trx_finality_status_processing::trx_state{ .block_id = iter->block_id, .block_timestamp = iter->block_timestamp, .received = iter->received, .expiration = iter->trx_expiry, .status = status };
331 }
◆ signal_accepted_block()
void sysio::chain_apis::trx_finality_status_processing::signal_accepted_block |
( |
const chain::block_state_ptr & | bsp | ) |
|
◆ signal_applied_transaction()
◆ signal_block_start()
void sysio::chain_apis::trx_finality_status_processing::signal_block_start |
( |
uint32_t | block_num | ) |
|
◆ signal_irreversible_block()
void sysio::chain_apis::trx_finality_status_processing::signal_irreversible_block |
( |
const chain::block_state_ptr & | bsp | ) |
|
The documentation for this class was generated from the following files: