Skip to main content

How-tos

As a general rule, back up your entire hinter-core-data/ directory before attempting any of the following. Do not remove the backup until you confirm that the operation is successful.

Undo Peer Blacklisting

hinter-core automatically blacklists peers that may disrupt its operation, for example, because the peer is running two hinter-core instances with the same keypair in parallel. It does this by creating a hinter-core-data/peers/{PEER_ALIAS}/.blacklisted file, which contains a message that explains the reason. You can undo the blacklist by simply deleting the .blacklisted file. However, note that the peer will soon be blacklisted again if the underlying reason isn't resolved.

Upgrade hinter-core to Latest Version

Stop and delete the pm2 process named my-hinter-core that you created while following the Quickstart guide.

pm2 stop my-hinter-core
pm2 delete my-hinter-core

Then, install the latest hinter-core version and configure pm2 using the commands provided by the current Quickstart guide.

You can check the logs to ensure the new version started correctly.

pm2 logs my-hinter-core
Migrating Through Breaking Changes

Some releases introduce breaking changes that require the user to handle. Always read the respective Release Notes before upgrading.

Update Keypair

You may want to update your keypair if it is compromised, or as a regular security practice. To do so, stop the pm2 process named my-hinter-core that you created while following the Quickstart guide.

pm2 stop my-hinter-core

Use the following command to initialize a new hinter-core directory named delete-after-use/.

hinter-core-initialize --data-dir "$(pwd)/delete-after-use"

Overwrite the .env file in your hinter-core-data/ directory with the .env file in delete-after-use/, and then delete the delete-after-use/ directory.

Restart the pm2 process for hinter-core.

pm2 start my-hinter-core

Finally, you must share your new public key with your peers for them to be able to update your peer configuration on their end.

Migrate to Another Working Directory or Machine

Stop and remove the pm2 process named my-hinter-core that you created while following the Quickstart guide.

pm2 stop my-hinter-core
pm2 delete my-hinter-core

Copy over your hinter-core-data/ directory to the new machine, except the .storage/ directory in it.

Follow the Quickstart guide to start hinter-core on the new machine, skipping the initialization step.

Avoid Parallel Instances With the Same Keypair

hinter-core is designed to be operated as a single instance. Do not run multiple instances with the same keypair.