enabling Hive-Engine witness node after year long slumber, step 1 - app update

avatar
(Edited)

It's been eight months since my Hive-Engine witness node has last signed the block. An eternity in blockchain world. After last autumn's #hivefest in Split I promised to myself and some friends that I will reawaken it. Well, it took me another half of year to get to it.

Today, after a message from my hosting provider that I need to pay the bill for next year's lease, I finally started enabling it. It was the proverbial kick in the butt and awakening call.

As you can see from this screenshot (@primersion's excellent tool for Hive-Engine witnesses overview and management) my node was inactive for 8 months, is stuck at some ancient block, yet is already upgraded to latest witness node version, to v2.0.2.

I am glad that my tiny upgrade procedure is still working. With it, it was a matter of minutes to bring it up to latest version. Here it is:

-- go to local top level directory for witness nodes
cd /var/witness/
 
-- get latest node software, it's v2.0.2
git clone --recursive --branch he_v2.0.2 https://github.com/hive-engine/hivesmartcontracts.git he202
 
-- go into newly created directory
cd he202
 
-- compile it
npm ci
 
-- copy over config and environment files
cp ../he20/config.json .
cp ../he200/.env .
 
-- stop node app, delete it, run it anew
pm2 stop app
pm2 delete app
pm2 start app.js
pm2 logs
 
-- it's working! chain is 6134480 blocks ahead

Ps: hopefully, config didn't change. I'll check it later.


Next steps

  • download latest snapshot of light version of database, import it
  • wait for node to catch up with the chain
  • enable witness, start participating in block production
  • go to discord server and tell the guys I am back
  • distribute my votes - it's not much - 907 $WORKERBEE
  • lobby and plead for votes to get to top 20 witnesses

The last step will be the hardest 😂


Why am I doing this?

  • because I want to contribute to community
  • yes, server and hosting cost money yet there is small compensation for it - if I reach top 20 witnesses
  • because I can & it's fun in a nerdy sort of way

Tagging some friends to announce the begging for votes part:
@primersion @louis88 @ph1102 @liotes @kanibot @forykw - Danke, thank you, obrigado, hvala.


better and better
:ervin :lemark

#2025 46/365




0
0
0.000
14 comments
avatar

!hbits

0
0
0.000
avatar

Success! @ervin-lemark(4/1) You mined .9 🟧 HBIT and the user you replied to received .1 HBIT on your behalf. You can receive 100% of the HBIT by replying to one of your own posts or comments. When you mine HBIT, you're also playing the Wusang: Isle of Blaq game. 🏴‍☠️ | tools | wallet | discord | community | daily <><

What's more, you found a 🟡 Blaq gold coin (BLAQGOLD) as a bonus treasure token!



There is a treasure chest of bitcoin sats hidden in the game. Someone will find it. Happy hunting. 😃

You can see your random number generated in the Discord server, #hbit-wusang-log channel. Check for bonus treasure tokens by entering your username at a block explorer explorer A, explorer B, or take a look at your wallet. Read about Hivebits (HBIT) or read the story of Wusang: Isle of Blaq.

0
0
0.000
avatar
(Edited)

Ps: does anybody know why formatting is borked after code part? !LOLZ

0
0
0.000
avatar

To answer myself, looks like some weird formatting is going on with empty lines that become paragraphs and are wrongly nested. I fixed it by adding nbsp on empty lines.

0
0
0.000
avatar

Great to see you back in the witness game🤩

0
0
0.000
avatar

Thank you, Danke für dein Upvote.

Btw, I might need to update config after all. I guess this list is outdated?

.

0
0
0.000
avatar

you should check https://beacon.peakd.com for stable nodes🙂 i usually use api.deathwing.me, api.openhive.network, techcoderx.com, anyx.io and rpc.ecency.com.

0
0
0.000
avatar

Tnx, I deleted some inactive nodes and now it catching the head. Almost there.

When time, I will check the health of nodes with RPC scanner.

0
0
0.000