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

feat/monitor-signers CLI command to poll signer stackerdb messages #5125

Closed jferrant closed 1 month ago

jferrant commented 2 months ago

Figured this would be better to have on hand and modify to suit our needs for testing whether signers are sending stackerdb messages or not. Could also implement a listener but that seems overly complicated. This just polls stackerdb every x seconds for expected message types and logs a message if any of the slots are completely empty and if any of the slot messages are older than y seconds. It will log any signer addresses that have stale/missing/unexpected messages.

jcnelson commented 1 month ago

Seems there are still some compilation issues here.

jferrant commented 1 month ago

Seems there are still some compilation issues here.

Fixed.

jcnelson commented 1 month ago

Approving for now; the only thing that still gives me pause is that there aren't any tests for this. However, given that this is a diagnostic tool that will probably only be used internally, that's fine for now.

blockstack-devops commented 3 weeks ago

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