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

Enable statusd to be run as community control node #5537

Open
osmaczko opened this issue Jul 18, 2024 · 0 comments
Open

Enable statusd to be run as community control node #5537

osmaczko opened this issue Jul 18, 2024 · 0 comments

Comments

@osmaczko
Copy link
Contributor

Problem

There is a need to run the control node in a headless configuration on a server. In such cases, all manual community management tasks would be handled by token-masters and admins.

I have identified two potential approaches:

Option A: Simple

statusd --data-dir="/helium/status/data" --pasword="xyz"
  1. Manually set up the control node.
  2. Export the data dir to the server.
  3. Execute statusd using the specified data dir.

Option B: Convenient (but more complex and error-prone)

statusd -controlNode --seed-phrase="test test test ... test test"
  1. Execute statusd using the owner's seed phrase.

NOTE: Both options expose owner's master private key. To mitigate that, one can create an ad-hoc chat account and specify it as signer in owner token contract.

Implementation

Option A

  • Enhance statusd to accept a --data-dir flag.

Option B

  • Enhance statusd to accept a --controlNode flag.
  • First Run:
    • Restore the account and log in.
    • Ensure the specified community is fetched from the backup (this will require an additional --community-id command line option).
    • Promote the statusd owner's instance to a control node.
  • Subsequent Runs:
    • If the controlNode data directory for the given seed phrase already exists, use it instead of restoring the account.
@jrainville jrainville added this to the 2.31.0 Beta milestone Jul 19, 2024
@igor-sirotin igor-sirotin changed the title Enable statusd to be run as control node Enable statusd to be run as community control node Aug 29, 2024
@jrainville jrainville modified the milestones: 2.31.0 Beta, 2.32.0 Beta Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

3 participants