mpcium icon indicating copy to clipboard operation
mpcium copied to clipboard

Should allow to specify the peers.json in mpcium-cli

Open anhthii opened this issue 1 year ago • 1 comments

Currently a user register-peers with a new peers.json on node0. Later on he accidentally register peers with the peers.json in mpcium Github source code lead to conflict in mpc peers.

anhthii avatar Sep 11 '25 02:09 anhthii

Fix: Require peers.json Path Explicitly

You can enforce this by:

Making the --peers flag required

Instead of falling back to a default file, force the user to pass the path.

Example:

mpcium-cli register-peers --peers /etc/mpcium/peers.json

If not provided, return an error like:

Error: peers.json path is required. Example:

  mpcium-cli register-peers --peers /etc/mpcium/peers.json

anhthii avatar Sep 11 '25 02:09 anhthii