MCPcopy Create free account
hub / github.com/bitshares/bitshares-core / plugin_initialize

Method plugin_initialize

libraries/plugins/es_objects/es_objects.cpp:499–516  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

497}
498
499void es_objects_plugin::plugin_initialize(const boost::program_options::variables_map& options)
500{
501 my->init_program_options( options );
502
503 database().new_objects.connect([this]( const vector<object_id_type>& ids,
504 const flat_set<account_id_type>& ) {
505 my->on_objects_create( ids );
506 });
507 database().changed_objects.connect([this]( const vector<object_id_type>& ids,
508 const flat_set<account_id_type>& ) {
509 my->on_objects_update( ids );
510 });
511 database().removed_objects.connect([this](const vector<object_id_type>& ids,
512 const vector<const object*>&, const flat_set<account_id_type>& ) {
513 my->on_objects_delete( ids );
514 });
515
516}
517
518void es_objects_plugin::plugin_startup()
519{

Callers

nothing calls this directly

Calls 6

connectMethod · 0.80
on_objects_createMethod · 0.80
on_objects_updateMethod · 0.80
on_objects_deleteMethod · 0.80
databaseClass · 0.50
init_program_optionsMethod · 0.45

Tested by

no test coverage detected