Skip to content

newng upgrade script

walkjivefly edited this page Nov 18, 2022 · 4 revisions

This is the script I use for quickly updating a testnet masternode/systemnode. It's not foolproof but it does most of the work required most of the time. I call it newng and place it in $HOME/bin so it's included in the default $PATH in the recommended VPS setup. Then, whenever there is a new release it is simple to run by

crown-cli stop
newng <version number> [wipe|wipeall]

Replace <version number> by the desired release tag, eg: 0.0.0.69. You can find the newest version number here.

If you want to wipe and resync the chain

  • add the wipe parm (preserves the wallet)
  • add the wipeall parm (wipes the entire testnet datadir including the wallet)

The script will create a crown.conf if one does not already exist but doesn't add the masternode/systemnode customisations; you need to do that manually.

If crown.conf already exists when the script runs then it is left unchanged.

Clone this wiki locally