phoreproject / vps

A handy bash script to setup crypto masternodes in no time. Now supports Phore and many more ;-)
https://masternodes.github.io/vps/
GNU General Public License v3.0
9 stars 13 forks source link

Add private key argument #1

Closed tohsnoom closed 6 years ago

tohsnoom commented 6 years ago

Add the ability to specify the Phore Masternode private key as an argument to install.sh, which then will automatically replace that line in the Phore configuration file.

Note: A simple argument will not work if the script is used to install multiple masternodes that all need different private keys. We may need to add a validation check and error message if the script is used with both the multiple masternode and private key arguments.

Alternatively, we could add a prompt during script execution to ask the user to enter the private key for each masternode as the .conf file is created for that masternode. Upgrade mode may need to override this since it wouldn't need a new private key.

liray-unendlich commented 6 years ago

Submitted PR. I added private key argument feature. But it seems complicate. Updated script supports privatekey validation check, error message. And update wallet daemon.