Hive Engine Light Node Upgrade v1.7.3

in #hiveengine2 years ago

Hive Engine Light Node Upgrade

A quick glance at the witness list shows a few people deploying the new v1.7.3 code, but just a few at this point, just 7 of the top 20. Since this update was out, I wanted to see what it takes to upgrade my light node to the latest version and share it with everyone so we can get this out more widely.

It's all very straightforward, but I'll walk through the steps.

Stop Node

First, we need to confirm how you named the process:
pm2 status
This will output a big table with a bunch of data, but you're just looking for 'name' If you follow my deploys it'll be named engwit but confirm your specific instance.

Once we have the name, we can stop it:
pm2 stop engwit

Of course, replace 'engwit' with whatever your specific name is.

Update Git

Now, since you've changed your config at a minimum, git will complain so you'll wanna start with a stash:

git stash

Then, it's a quick fetch and checkout:

git fetch
git checkout tags/he_v1.7.3

Update Config

You'll wannna update lightNode in config.json from false to true:

"lightNode": true,

Start Node

Finally, we can start out node. Notice, the last param at the end specifies the name that we searched for previousy.

pm2 start app.js --no-treekill --kill-timeout 10000 --no-autorestart --name engwit

Conclusion

These quick steps are all it takes to get your light node fully upgraded to the latest version. I hope this guide is helpful and gets a few more light nodes up and running.

As always, I'm trying to build my witness ranks so I would deeply appreciate your vote.

Sort:  

Thanks for the reminder.

Why do these things always happen over the weekend? :)

@tipu curate