BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
Go to the documentation of this file.
29 namespace graphene {
namespace custom_operations {
52 uint32_t _start_block = 45000000;
82 if(custom_op.
data.size() == 0)
86 auto unpacked = fc::raw::unpack<custom_plugin_operation>(custom_op.
data);
91 wlog(
"Custom operations plugin serializing error: ${ex} in operation: ${op}",
102 my(
std::make_unique<detail::custom_operations_plugin_impl>(*this) )
111 return "custom_operations";
115 return "Stores arbitrary data for accounts by creating specially crafted custom operations.";
119 boost::program_options::options_description& cli,
120 boost::program_options::options_description& cfg
124 (
"custom-operations-start-block", boost::program_options::value<uint32_t>()->default_value(45000000),
125 "Start processing custom operations transactions with the plugin only after this block")
135 if (options.count(
"custom-operations-start-block") > 0) {
136 my->_start_block = options[
"custom-operations-start-block"].as<uint32_t>();
148 ilog(
"custom_operations: plugin_startup() begin");
tracks the blockchain state in an extensible manner
provides a generic way to add higher level protocols on top of witness consensus
Used to generate a useful error report when an exception is thrown.
Wraps a derived index to intercept calls to create, modify, and remove so that callbacks may be fired...
chain::database & database()
void operator()(T &v) const
const vector< optional< operation_history_object > > & get_applied_operations() const
fc::signal< void(const signed_block &)> applied_block
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.
static string to_string(const variant &v, output_formatting format=stringify_large_ints_and_doubles, uint32_t max_depth=DEFAULT_MAX_RECURSION_DEPTH)
custom_operations_plugin_impl(custom_operations_plugin &_plugin)
account_id_type _fee_payer
graphene::chain::database & database()
std::string to_detail_string(log_level ll=log_level::all) const
std::string plugin_name() const override
Get the name of the plugin.
void plugin_initialize(const boost::program_options::variables_map &options) override
Perform early startup routines and register plugin indexes, callbacks, etc.
account_id_type fee_payer() const
void plugin_startup() override
Begin normal runtime operations.
std::string plugin_description() const override
Get the description of the plugin.
custom_operations_plugin(graphene::app::application &app)
provides stack-based nullable value similar to boost::optional
custom_op_visitor(database &db, account_id_type fee_payer)
~custom_operations_plugin() override