Wire Sysio Wire Sysion 1.0.0
|
#include <transaction_context.hpp>
Public Attributes | |
controller & | control |
Fields: | |
const packed_transaction & | packed_trx |
std::optional< chainbase::database::session > | undo_session |
transaction_trace_ptr | trace |
fc::time_point | start |
fc::time_point | published |
vector< digest_type > | executed_action_receipt_digests |
flat_set< account_name > | bill_to_accounts |
flat_set< account_name > | validate_ram_usage |
uint64_t | initial_max_billable_cpu = 0 |
the maximum number of virtual CPU instructions of the transaction that can be safely billed to the billable accounts | |
fc::microseconds | delay |
bool | is_input = false |
bool | apply_context_free = true |
bool | enforce_whiteblacklist = true |
fc::time_point | block_deadline = fc::time_point::maximum() |
fc::microseconds | leeway = fc::microseconds( config::default_subjective_cpu_leeway_us ) |
int64_t | billed_cpu_time_us = 0 |
int64_t | subjective_cpu_bill_us = 0 |
bool | explicit_billed_cpu_time = false |
transaction_checktime_timer | transaction_timer |
const bool | is_read_only |
Friends | |
struct | controller_impl |
class | apply_context |
Definition at line 32 of file transaction_context.hpp.
sysio::chain::transaction_context::transaction_context | ( | controller & | c, |
const packed_transaction & | t, | ||
transaction_checktime_timer && | timer, | ||
fc::time_point | start = fc::time_point::now(), | ||
bool | read_only = false ) |
Definition at line 47 of file transaction_context.cpp.
sysio::chain::transaction_context::~transaction_context | ( | ) |
Definition at line 76 of file transaction_context.cpp.
|
inline |
Definition at line 57 of file transaction_context.hpp.
void sysio::chain::transaction_context::check_net_usage | ( | ) | const |
Definition at line 404 of file transaction_context.cpp.
void sysio::chain::transaction_context::checktime | ( | ) | const |
Definition at line 424 of file transaction_context.cpp.
void sysio::chain::transaction_context::exec | ( | ) |
Definition at line 313 of file transaction_context.cpp.
void sysio::chain::transaction_context::finalize | ( | ) |
Definition at line 340 of file transaction_context.cpp.
|
inline |
Definition at line 64 of file transaction_context.hpp.
void sysio::chain::transaction_context::init_for_deferred_trx | ( | fc::time_point | published | ) |
Definition at line 296 of file transaction_context.cpp.
void sysio::chain::transaction_context::init_for_implicit_trx | ( | uint64_t | initial_net_usage = 0 | ) |
Definition at line 244 of file transaction_context.cpp.
void sysio::chain::transaction_context::init_for_input_trx | ( | uint64_t | packed_trx_unprunable_size, |
uint64_t | packed_trx_prunable_size ) |
checks for dupes
Definition at line 255 of file transaction_context.cpp.
std::tuple< int64_t, int64_t, bool, bool > sysio::chain::transaction_context::max_bandwidth_billed_accounts_can_pay | ( | bool | force_elastic_limits = false | ) | const |
Definition at line 574 of file transaction_context.cpp.
void sysio::chain::transaction_context::pause_billing_timer | ( | ) |
Definition at line 455 of file transaction_context.cpp.
void sysio::chain::transaction_context::resume_billing_timer | ( | ) |
Definition at line 464 of file transaction_context.cpp.
void sysio::chain::transaction_context::squash | ( | ) |
void sysio::chain::transaction_context::undo | ( | ) |
uint32_t sysio::chain::transaction_context::update_billed_cpu_time | ( | fc::time_point | now | ) |
Definition at line 565 of file transaction_context.cpp.
void sysio::chain::transaction_context::validate_referenced_accounts | ( | const transaction & | trx, |
bool | enforce_actor_whitelist_blacklist ) const |
Definition at line 739 of file transaction_context.cpp.
|
friend |
Definition at line 89 of file transaction_context.hpp.
|
friend |
Definition at line 88 of file transaction_context.hpp.
bool sysio::chain::transaction_context::apply_context_free = true |
Definition at line 140 of file transaction_context.hpp.
flat_set<account_name> sysio::chain::transaction_context::bill_to_accounts |
Definition at line 132 of file transaction_context.hpp.
int64_t sysio::chain::transaction_context::billed_cpu_time_us = 0 |
Definition at line 145 of file transaction_context.hpp.
fc::time_point sysio::chain::transaction_context::block_deadline = fc::time_point::maximum() |
Definition at line 143 of file transaction_context.hpp.
controller& sysio::chain::transaction_context::control |
Definition at line 122 of file transaction_context.hpp.
fc::microseconds sysio::chain::transaction_context::delay |
Definition at line 138 of file transaction_context.hpp.
bool sysio::chain::transaction_context::enforce_whiteblacklist = true |
Definition at line 141 of file transaction_context.hpp.
vector<digest_type> sysio::chain::transaction_context::executed_action_receipt_digests |
Definition at line 131 of file transaction_context.hpp.
bool sysio::chain::transaction_context::explicit_billed_cpu_time = false |
Definition at line 147 of file transaction_context.hpp.
uint64_t sysio::chain::transaction_context::initial_max_billable_cpu = 0 |
Definition at line 136 of file transaction_context.hpp.
bool sysio::chain::transaction_context::is_input = false |
Definition at line 139 of file transaction_context.hpp.
const bool sysio::chain::transaction_context::is_read_only |
Definition at line 151 of file transaction_context.hpp.
fc::microseconds sysio::chain::transaction_context::leeway = fc::microseconds( config::default_subjective_cpu_leeway_us ) |
Definition at line 144 of file transaction_context.hpp.
const packed_transaction& sysio::chain::transaction_context::packed_trx |
Definition at line 123 of file transaction_context.hpp.
fc::time_point sysio::chain::transaction_context::published |
Definition at line 128 of file transaction_context.hpp.
fc::time_point sysio::chain::transaction_context::start |
Definition at line 126 of file transaction_context.hpp.
int64_t sysio::chain::transaction_context::subjective_cpu_bill_us = 0 |
Definition at line 146 of file transaction_context.hpp.
transaction_trace_ptr sysio::chain::transaction_context::trace |
Definition at line 125 of file transaction_context.hpp.
transaction_checktime_timer sysio::chain::transaction_context::transaction_timer |
Definition at line 149 of file transaction_context.hpp.
std::optional<chainbase::database::session> sysio::chain::transaction_context::undo_session |
Definition at line 124 of file transaction_context.hpp.
flat_set<account_name> sysio::chain::transaction_context::validate_ram_usage |
Definition at line 133 of file transaction_context.hpp.