Node State Server
Run on | control center |
Program type | listener |
Communicates with | Online Program |
Description | Server to allow nodes to transition their states. |
Flow description
The registration server accepts state transition requests from nodes, encrypted using the AES encryption key for each specific node.
- Receive request. Determine the node ID and decrypt the request body as per the Node encryption protocol.
- Parse request as per the schema, and determine the requested state.
- Update the state of the node in the database. If the update failed or the transition was not valid, return an error.
- Return success as status 200 as per the Node encryption protocol.
Schema description
Decrypted request body
Length: 4 bytes
Fields
Bytes | Name | Description |
---|---|---|
[3:0] |
nodeStatus |
The number representing the new node state. 4: OFFLINE 8: LOADING 16: ONLINE 64: REVOKED |