Forger plugin
@liskhq/lisk-framework-forger-plugin
is a plugin for the Lisk Framework that monitors configured delegates forging activity and voters information.
Name | Property |
---|---|
Alias |
|
Actions |
|
Events |
|
Default configuration
Forger options in the configuration
{
//[...]
plugins: {
forger: {
dataPath: '~/.lisk/forger' (1)
}
}
}
1 | dataPath : The data path for storing forging related information captured from application. |
Registering the plugin
const { Application, ForgerPlugin, genesisBlockDevnet, configDevnet } = require('lisk-sdk');
const app = Application.defaultApplication(genesisBlockDevnet, configDevnet);
app.registerPlugin(ForgerPlugin);
app
.run()
.then(() => app.logger.info('App started...'))
.catch(error => {
console.error('Faced error in application', error);
process.exit(1);
});