dakk / lisk-pool3

A lisk pool for version 3
https://dakk.github.io/lisk-pool3/
MIT License
4 stars 11 forks source link

Use forger plugin as a source of rewards/voters data #24

Open przemerr opened 2 years ago

przemerr commented 2 years ago

Not sure if this something you want to implement, but since the official lisk-service has issues you could use the forger plugin built in to lisk-core. It provides always accurate data since it collects the data from local lisk-core node. You can read about it here: https://lisk.com/documentation/lisk-sdk/references/lisk-framework/forger-plugin.html#actions

The communication with the plugin is through WS. It has two actions that returns everything you want. The aggregated votes and rewards.

forger:getVoters forger:getForgingInfo

The user would have to run his lisk-core with --enable-forger-plugin parameter. It's not a feature request :) Just something for you to consider.

dakk commented 2 years ago

Not sure if this something you want to implement, but since the official lisk-service has issues you could use the forger plugin built in to lisk-core. It provides always accurate data since it collects the data from local lisk-core node. You can read about it here: https://lisk.com/documentation/lisk-sdk/references/lisk-framework/forger-plugin.html#actions

The communication with the plugin is through WS. It has two actions that returns everything you want. The aggregated votes and rewards.

forger:getVoters forger:getForgingInfo

The user would have to run his lisk-core with --enable-forger-plugin parameter. It's not a feature request :) Just something for you to consider.

That's a good idea to overcome lisk-service issue; if implemented, I will let the user to choose how to get the data.