stacks-network / stacks-core

The Stacks blockchain implementation
https://docs.stacks.co
GNU General Public License v3.0
3.01k stars 671 forks source link

Add a means to easily check if an external signer is signing blocks as expected #5106

Closed jferrant closed 1 month ago

jferrant commented 2 months ago

There are plans to add metrics to the dashboard concerning how many blocks were signed in a given reward cycle by a signer.

Create an RPC endpoint that reports the number of blocks signed by a given public key for perhaps a given reward cycle. Would involve introducing a table of signer public keys with reward cycle and number of blocks signed. As each block is processed, read the vector of signatures, and update the table accordingly.

jcnelson commented 2 months ago

To implement this, we would need to:

The table can be populated lazily -- i.e. the absence of a row for the given key and reward cycle can be treated the same as a row in which the signature count is zero.

blockstack-devops commented 3 weeks ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.