Steemfeed-JS RPC Node Update

in #witness-category8 years ago (edited)

Witnesses using Steemfeed-JS (https://github.com/Someguy123/steemfeed-js/) should know that the old steemd.steemit.com RPC node was retired today 6 January 2018, so the price feed script doesn't work anymore and requires a little updating.

Here's how to fix it, assuming your files are located in your home directory in the folder steemfeed-js.

Remove the current feed container:
docker rm -f feed

Change to the steemfeed folder:
cd ~/steemfeed-js

Edit the file app.js and change steemd.steemit.com to steemd.privex.io for example. A quick way to do it without editors is with the command sed.
sed -i ~/steemfeed-js/app.js -r -e 's/steemd.steemit.com /steemd.privex.io/g'

There is a list of public RPC nodes at the following URLs:

Rebuild the container:
docker build -t steemfeed-js .

Cleanup the leftover docker images (it may spit out some errors, ignore them):
docker ps -a | grep 'Exited' | awk '{print $1}' | xargs docker rm ; docker images | grep '<none>' | awk '{print $3}' | xargs docker rmi -f

Start the feed:
docker run -itd --rm --name feed steemfeed-js

Wait a few seconds and check if the price feed was broadcast ok:
docker logs --tail=30 feed

Have some cookies.

I made a pull request for the update at https://github.com/Someguy123/steemfeed-js/pull/4

P.S. Thanks to @yabapmatt's tip, you can also add a "node" setting to the config.json file.
"node": "wss://steemd.privex.io/"
Then rebuild and restart the container.


Follow

Available & Reliable. I am your Witness. I want to represent You.

🗳 If you like what I do, consider voting for me 🗳

Vote

If you never voted before, I wrote a detailed guide about Voting for Witnesses.

Go to https://steemit.com/~witnesses. My name is listed in the Top 50. Click once.

Alternative voting methods

https://v2.steemconnect.com/sign/account-witness-vote?witness=drakos&approve=1
cli_wallet: vote_for_witness "YOURACCOUNT" "drakos" true true
steem-python: steempy approvewitness drakos --account YOURACCOUNT

Sort:  

@drakos - FYI you can also just add a "node" setting to the config.json file and restart the docker container.

"node": "wss://steemd.privex.io/",

Ah good to know :)

Thank you very much, all sorted now ;-)

Thank you Ali Ali for the valuable information, my friend
Every day I learn from you wonderful things

thx drakos, quick documentation

Life saver, thanks!