21 set_trace_elapsed_to_zero(act_trace);
31 _config = std::move(
config);
51 fc_dlog(_logger,
"DEEP_MIND_VERSION wire_sysio 13 0");
53 fc_dlog(_logger,
"ABIDUMP START ${block_num} ${global_sequence_num}",
54 (
"block_num", head_block_num)
58 for (
auto& row : idx.indices()) {
59 if (row.abi.size() != 0) {
60 fc_dlog(_logger,
"ABIDUMP ABI ${contract} ${abi}",
61 (
"contract", row.name)
66 fc_dlog(_logger,
"ABIDUMP END");
71 fc_dlog(_logger,
"START_BLOCK ${block_num}", (
"block_num", block_num));
78 fc_dlog(_logger,
"ACCEPTED_BLOCK ${num} ${blk}",
79 (
"num", bsp->block_num)
86 fc_dlog(_logger,
"SWITCH_FORK ${from_id} ${to_id}",
96 fc_dlog(_logger,
"TRX_OP CREATE onerror ${id} ${trx}",
106 fc_dlog(_logger,
"TRX_OP CREATE onblock ${id} ${trx}",
124 std::vector<char> packed_trace;
128 set_trace_elapsed_to_zero(trace_copy);
135 fc_dlog(_logger,
"APPLIED_TRANSACTION ${block} ${traces}",
143 fc_dlog(_logger,
"RAM_CORRECTION_OP ${action_id} ${correction_id} ${event_id} ${payer} ${delta}",
144 (
"action_id", _action_id)
145 (
"correction_id", rco.id.
_id)
155 fc_dlog(_logger,
"FEATURE_OP PRE_ACTIVATE ${action_id} ${feature_digest} ${feature}",
156 (
"action_id", _action_id)
157 (
"feature_digest", feature.feature_digest)
158 (
"feature", feature.to_variant())
164 fc_dlog(_logger,
"FEATURE_OP ACTIVATE ${feature_digest} ${feature}",
165 (
"feature_digest", feature.feature_digest)
166 (
"feature", feature.to_variant())
172 fc_dlog(_logger,
"CREATION_OP ROOT ${action_id}",
173 (
"action_id", _action_id)
182 fc_dlog(_logger,
"CREATION_OP NOTIFY ${action_id}",
183 (
"action_id", _action_id)
188 fc_dlog(_logger,
"CREATION_OP INLINE ${action_id}",
189 (
"action_id", _action_id)
194 fc_dlog(_logger,
"CREATION_OP CFA_INLINE ${action_id}",
195 (
"action_id", _action_id)
200 fc_dlog(_logger,
"DTRX_OP ${qual}CANCEL ${action_id} ${sender} ${sender_id} ${payer} ${published} ${delay} ${expiration} ${trx_id} ${trx}",
201 (
"qual", prefix(qual))
202 (
"action_id", _action_id)
203 (
"sender", gto.sender)
204 (
"sender_id", gto.sender_id)
206 (
"published", gto.published)
207 (
"delay", gto.delay_until)
208 (
"expiration", gto.expiration)
209 (
"trx_id", gto.trx_id)
215 fc_dlog(_logger,
"DTRX_OP ${qual}CREATE ${action_id} ${sender} ${sender_id} ${payer} ${published} ${delay} ${expiration} ${trx_id} ${trx}",
216 (
"qual", prefix(qual))
217 (
"action_id", _action_id)
218 (
"sender", gto.sender)
219 (
"sender_id", gto.sender_id)
221 (
"published", gto.published)
222 (
"delay", gto.delay_until)
223 (
"expiration", gto.expiration)
224 (
"trx_id", gto.trx_id)
232 fc_dlog(_logger,
"DTRX_OP ${qual}CREATE ${action_id} ${sender} ${sender_id} ${payer} ${published} ${delay} ${expiration} ${trx_id} ${trx}",
233 (
"qual", prefix(qual))
234 (
"action_id", _action_id)
235 (
"sender", gto.sender)
236 (
"sender_id", gto.sender_id)
238 (
"published", gto.published)
239 (
"delay", gto.delay_until)
240 (
"expiration", gto.expiration)
241 (
"trx_id", gto.trx_id)
242 (
"trx",
fc::to_hex(packed_signed_trx.data(), packed_signed_trx.size()))
247 fc_dlog(_logger,
"DTRX_OP FAILED ${action_id}",
248 (
"action_id", _action_id)
253 fc_dlog(_logger,
"TBL_OP INS ${action_id} ${code} ${scope} ${table} ${payer}",
254 (
"action_id", _action_id)
263 fc_dlog(_logger,
"TBL_OP REM ${action_id} ${code} ${scope} ${table} ${payer}",
264 (
"action_id", _action_id)
273 fc_dlog(_logger,
"DB_OP INS ${action_id} ${payer} ${table_code} ${scope} ${table_name} ${primkey} ${ndata}",
274 (
"action_id", _action_id)
276 (
"table_code", tid.code)
278 (
"table_name", tid.table)
285 fc_dlog(_logger,
"DB_OP UPD ${action_id} ${opayer}:${npayer} ${table_code} ${scope} ${table_name} ${primkey} ${odata}:${ndata}",
286 (
"action_id", _action_id)
287 (
"opayer", kvo.
payer)
289 (
"table_code", tid.code)
291 (
"table_name", tid.table)
299 fc_dlog(_logger,
"DB_OP REM ${action_id} ${payer} ${table_code} ${scope} ${table_name} ${primkey} ${odata}",
300 (
"action_id", _action_id)
302 (
"table_code", tid.code)
304 (
"table_name", tid.table)
311 fc_dlog(_logger,
"RLIMIT_OP CONFIG INS ${data}",
314 fc_dlog(_logger,
"RLIMIT_OP STATE INS ${data}",
320 fc_dlog(_logger,
"RLIMIT_OP CONFIG UPD ${data}",
326 fc_dlog(_logger,
"RLIMIT_OP STATE UPD ${data}",
332 fc_dlog(_logger,
"RLIMIT_OP ACCOUNT_LIMITS INS ${data}",
335 fc_dlog(_logger,
"RLIMIT_OP ACCOUNT_USAGE INS ${data}",
341 fc_dlog(_logger,
"RLIMIT_OP ACCOUNT_USAGE UPD ${data}",
347 fc_dlog(_logger,
"RLIMIT_OP ACCOUNT_LIMITS UPD ${data}",
353 _ram_trace =
ram_trace(std::move(event_id), family, operation, legacy_tag);
357 fc_dlog(_logger,
"RAM_OP ${action_id} ${event_id} ${family} ${operation} ${legacy_tag} ${payer} ${new_usage} ${delta}",
358 (
"action_id", _action_id)
360 (
"family", _ram_trace.
family)
364 (
"new_usage", new_usage)
372 fc_dlog(_logger,
"PERM_OP INS ${action_id} ${permission_id} ${data}",
373 (
"action_id", _action_id)
374 (
"permission_id",
p.id)
380 fc_dlog(_logger,
"PERM_OP UPD ${action_id} ${permission_id} ${data}",
381 (
"action_id", _action_id)
382 (
"permission_id", new_permission.id)
384 (
"old", old_permission)
385 (
"new", new_permission)
391 fc_dlog(_logger,
"PERM_OP REM ${action_id} ${permission_id} ${data}",
392 (
"action_id", _action_id)
393 (
"permission_id", permission.id)
const generic_index< MultiIndexType > & get_index() const
const ObjectType & get(CompatibleKey &&key) const
const char * data() const
static void update(const fc::string &name, logger &log)
An order-preserving dictionary of variants.
void on_cancel_deferred(operation_qualifier qual, const generated_transaction_object >o)
void on_activate_feature(const protocol_feature &feature)
void on_modify_permission(const permission_object &old_permission, const permission_object &new_permission)
void on_newaccount_resource_limits(const resource_limits::resource_limits_object &limits, const resource_limits::resource_usage_object &usage)
void on_startup(chainbase::database &db, uint32_t head_block_num)
void on_preactivate_feature(const protocol_feature &feature)
void on_start_transaction()
void on_create_deferred(operation_qualifier qual, const generated_transaction_object >o, const packed_transaction &packed_trx)
void on_db_remove_i64(const table_id_object &tid, const key_value_object &kvo)
void on_end_transaction()
void on_update_resource_limits_state(const resource_limits::resource_limits_state_object &state)
void on_accepted_block(const std::shared_ptr< block_state > &bsp)
void on_send_context_free_inline()
void on_update_resource_limits_config(const resource_limits::resource_limits_config_object &config)
void update_config(deep_mind_config config)
void on_onerror(const signed_transaction &etrx)
void on_db_store_i64(const table_id_object &tid, const key_value_object &kvo)
void on_switch_forks(const block_id_type &old_head, const block_id_type &new_head)
void on_require_recipient()
void on_remove_table(const table_id_object &tid)
void on_update_account_usage(const resource_limits::resource_usage_object &usage)
void on_start_block(uint32_t block_num)
void on_send_deferred(operation_qualifier qual, const generated_transaction_object >o)
void on_db_update_i64(const table_id_object &tid, const key_value_object &kvo, account_name payer, const char *buffer, std::size_t buffer_size)
void update_logger(const std::string &logger_name)
void on_create_permission(const permission_object &p)
void on_add_ram_correction(const account_ram_correction_object &rco, uint64_t delta)
void on_set_account_limits(const resource_limits::resource_limits_object &limits)
void on_create_table(const table_id_object &tid)
void on_onblock(const signed_transaction &trx)
void on_remove_permission(const permission_object &permission)
void on_ram_event(account_name account, uint64_t new_usage, int64_t delta)
void on_ram_trace(std::string &&event_id, const char *family, const char *operation, const char *legacy_tag)
void on_init_resource_limits(const resource_limits::resource_limits_config_object &config, const resource_limits::resource_limits_state_object &state)
void on_applied_transaction(uint32_t block_num, const std::shared_ptr< transaction_trace > &trace)
Maintains global state information that frequently change.
The table_id_object class tracks the mapping of (scope, code, table) to an opaque identifier.
#define fc_dlog(LOGGER, FORMAT,...)
void pack(Stream &s, const std::deque< T > &value)
fc::string to_hex(const char *d, uint32_t s)
chainbase::shared_multi_index_container< account_object, indexed_by< ordered_unique< tag< by_id >, member< account_object, account_object::id_type, &account_object::id > >, ordered_unique< tag< by_name >, member< account_object, account_name, &account_object::name > > > > account_index
std::shared_ptr< transaction_trace > transaction_trace_ptr
const fc::string logger_name("net_plugin_impl")
unsigned __int64 uint64_t
Immutable except for fc::from_variant.
const signed_transaction & get_signed_transaction() const
vector< action_trace > action_traces
transaction_id_type id() const