Report misbehavior plugin

@liskhq/lisk-framework-report-misbehavior-plugin is a plugin for the Lisk Framework that provides automatic detection of delegate misbehavior and sends a reportDelegateMisbehaviorTransaction to the running node.

Name Property

Alias

reportMisbehavior

Actions

authorize

Events

none

To use the report misbehavior plugin in the application, it is necessary to register it.

Default configuration

Forger options in the configuration
{
  //[...]
  plugins: {
    reportMisbehavior: {
        dataPath: '~/.lisk/report-misbehavior', (1)
		cleanupFrequency: 3600, (2)
		encryptedPassphrase: '', (3)
		fee: 100000000 (4)
	},
  }
}
1 dataPath: The data path for storing misbehavior related information captured from application.
2 cleanupFrequency(optional): Frequency of cleaning up the outdated data in seconds.
3 encryptedPassphrase(optional): The encrypted passphrase of the account that will report the misbehavior.
4 fee(optional): The fee required to send a report misbehavior transaction.

Actions

authorize

Invoke this action to enable or disable the delegate misbehavior report.

Input

{
  password: string,
  enable: boolean
}

Returns

"Successfully enabled/disabled the reporting of misbehavior."