Extending functionality
The validator library supports plugins which are called after each plugin this way you can attach plugins locally to perform other work. The license reward pool is partially implemented as a plugin and a good starting point:
Attaching a plugin:
const dispatcher = PluginDispatcherBuilder.create().addPlugin(coolPlugin).build();
Local development setup:
- Install Node.js
- Run:
$ npm i && npm run build sps-validator.
Customize .env for local use.
- Start local validator with:
$ npm start sps-validator