Definition at line 358 of file trace_api_plugin.cpp.
◆ chain_extraction_t
◆ trace_api_plugin_impl()
sysio::trace_api_plugin_impl::trace_api_plugin_impl |
( |
const std::shared_ptr< trace_api_common_impl > & | common | ) |
|
|
inline |
◆ plugin_initialize()
void sysio::trace_api_plugin_impl::plugin_initialize |
( |
const appbase::variables_map & | options | ) |
|
|
inline |
Definition at line 365 of file trace_api_plugin.cpp.
365 {
366 ilog(
"initializing trace api plugin");
371 };
372 extraction = std::make_shared<chain_extraction_t>(shared_store_provider<store_provider>(
common->store), log_exceptions_and_shutdown);
373
375
377 chain.applied_transaction.connect([this](std::tuple<const chain::transaction_trace_ptr&, const chain::packed_transaction_ptr&> t) {
378 emit_killer([&](){
379 extraction->signal_applied_transaction(std::get<0>(t), std::get<1>(t));
380 });
381 }));
382
384 chain.block_start.connect([
this](
uint32_t block_num) {
385 emit_killer([&](){
387 });
388 }));
389
392 emit_killer([&](){
394 });
395 }));
396
399 emit_killer([&](){
401 });
402 }));
403
404 }
abstract_plugin * find_plugin(const string &name) const
std::shared_ptr< block_state > block_state_ptr
std::tuple< const std::exception_ptr &, char const *, uint64_t, char const * > exception_with_context
std::optional< scoped_connection > applied_transaction_connection
std::optional< scoped_connection > block_start_connection
std::optional< scoped_connection > irreversible_block_connection
std::optional< scoped_connection > accepted_block_connection
std::shared_ptr< chain_extraction_t > extraction
◆ plugin_shutdown()
void sysio::trace_api_plugin_impl::plugin_shutdown |
( |
| ) |
|
|
inline |
◆ plugin_startup()
void sysio::trace_api_plugin_impl::plugin_startup |
( |
| ) |
|
|
inline |
◆ set_program_options()
static void sysio::trace_api_plugin_impl::set_program_options |
( |
appbase::options_description & | cli, |
|
|
appbase::options_description & | cfg ) |
|
inlinestatic |
◆ accepted_block_connection
std::optional<scoped_connection> sysio::trace_api_plugin_impl::accepted_block_connection |
◆ applied_transaction_connection
std::optional<scoped_connection> sysio::trace_api_plugin_impl::applied_transaction_connection |
◆ block_start_connection
std::optional<scoped_connection> sysio::trace_api_plugin_impl::block_start_connection |
◆ common
◆ extraction
◆ irreversible_block_connection
std::optional<scoped_connection> sysio::trace_api_plugin_impl::irreversible_block_connection |
The documentation for this struct was generated from the following file: