Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
chain_plugin Class Reference
Inheritance diagram for chain_plugin:
Collaboration diagram for chain_plugin:

Public Member Functions

 APPBASE_PLUGIN_REQUIRES ()
 
virtual void set_program_options (options_description &cli, options_description &cfg) override
 
void plugin_initialize (const variables_map &options)
 
void plugin_startup ()
 
void plugin_shutdown ()
 
databasedb ()
 
- Public Member Functions inherited from appbase::plugin< chain_plugin >
 plugin ()
 
virtual ~plugin ()
 
virtual state get_state () const override
 
virtual const std::string & name () const override
 
virtual void register_dependencies ()
 
virtual void initialize (const variables_map &options) override
 
virtual void handle_sighup () override
 
virtual void startup () override
 
virtual void shutdown () override
 
- Public Member Functions inherited from appbase::abstract_plugin
virtual ~abstract_plugin ()
 

Additional Inherited Members

- Public Types inherited from appbase::abstract_plugin
enum  state { registered , initialized , started , stopped }
 
- Protected Member Functions inherited from appbase::plugin< chain_plugin >
 plugin (const string &name)
 

Detailed Description

Definition at line 14 of file main.cpp.

Member Function Documentation

◆ APPBASE_PLUGIN_REQUIRES()

chain_plugin::APPBASE_PLUGIN_REQUIRES ( )

◆ db()

database & chain_plugin::db ( )
inline

Definition at line 35 of file main.cpp.

35{ return _db; }

◆ plugin_initialize()

void chain_plugin::plugin_initialize ( const variables_map & options)
inline

Definition at line 31 of file main.cpp.

31{ std::cout << "initialize chain plugin\n"; }

◆ plugin_shutdown()

void chain_plugin::plugin_shutdown ( )
inline

Definition at line 33 of file main.cpp.

33{ std::cout << "shutdown chain plugin \n"; }

◆ plugin_startup()

void chain_plugin::plugin_startup ( )
inline

Definition at line 32 of file main.cpp.

32{ std::cout << "starting chain plugin \n"; }

◆ set_program_options()

virtual void chain_plugin::set_program_options ( options_description & cli,
options_description & cfg )
inlineoverridevirtual

Implements appbase::abstract_plugin.

Definition at line 19 of file main.cpp.

20 {
21 cfg.add_options()
22 ("readonly", "open the database in read only mode")
23 ("dbsize", bpo::value<uint64_t>()->default_value( 8*1024 ), "Minimum size MB of database shared memory file")
24 ;
25 cli.add_options()
26 ("replay", "clear chain database and replay all blocks" )
27 ("reset", "clear chain database and block log" )
28 ;
29 }
void cli()
Here is the call graph for this function:

The documentation for this class was generated from the following file: