BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
Go to the documentation of this file.
27 namespace graphene {
namespace template_plugin {
38 void on_block(
const signed_block& b );
50 std::string _plugin_option =
"";
56 wdump((b.block_num()));
74 my(
std::make_unique<detail::template_plugin_impl>(*this) )
86 return "template_plugin";
90 return "template_plugin description";
94 boost::program_options::options_description& cli,
95 boost::program_options::options_description& cfg
99 (
"template_plugin_option", boost::program_options::value<std::string>(),
"template_plugin option")
111 if (options.count(
"template_plugin") > 0) {
112 my->_plugin_option = options[
"template_plugin"].as<std::string>();
118 ilog(
"template_plugin: plugin_startup() begin");
123 ilog(
"template_plugin: plugin_shutdown() begin");
127 void template_plugin::cleanup()
std::string plugin_name() const override
Get the name of the plugin.
tracks the blockchain state in an extensible manner
graphene::chain::database & database()
void on_block(const signed_block &b)
chain::database & database()
template_plugin(graphene::app::application &app)
void plugin_startup() override
Begin normal runtime operations.
~template_plugin() override
fc::signal< void(const signed_block &)> applied_block
void plugin_initialize(const boost::program_options::variables_map &options) override
Perform early startup routines and register plugin indexes, callbacks, etc.
virtual ~template_plugin_impl()
void plugin_shutdown() override
Cleanly shut down the plugin.
std::string plugin_description() const override
Get the description of the plugin.
application & app() const
Get a reference of the application bound to the plugin.
void plugin_set_program_options(boost::program_options::options_description &cli, boost::program_options::options_description &cfg) override
Fill in command line parameters used by the plugin.
template_plugin_impl(template_plugin &_plugin)