Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block forging state query functionality #1405

Open
tdammers opened this issue Feb 27, 2025 · 0 comments
Open

Block forging state query functionality #1405

tdammers opened this issue Feb 27, 2025 · 0 comments

Comments

@tdammers
Copy link

#1402 introduces KES agent connectivity.

With this, a node process can be in some states that weren't possible previously, to wit:

  • "Not a block forging node": the node isn't configured to forge any blocks, and thus doesn't do so.
  • "Block forging, connected": this is the normal block forging state - the node is connected to a KES agent, holds a valid KES key, and participates in block forging.
  • "Block forging, not connected": the node is not currently connected to a KES agent, but holds a valid KES key, and participates in block forging using that key.
  • "No KES key": the node is connected to a KES agent, but hasn't received a KES key yet, so it cannot forge any blocks. Once the connected KES agent pushes a key, the node will start forging blocks.
  • "Not connected": the node is not connected to a KES agent, and doesn't hold a valid KES key, so it cannot forge any blocks.

These states will also be evident from trace logs, but for debugging and active monitoring purposes, it may be useful to allow users to query the node for its block forging state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant