Witnesses signalling incorrect pricefeed

Recently, there have been issues with the Hive Pricefeed. I noticed this a few days back when my witness node was not publishing the price feed properly. When I checked the error log, I found many errors related to the responses from the API calls to the exchanges. I thought the issue might be resolved automatically, thinking it could be a temporary API issue. But apparently, there were some more issues in the code repo that I was using.

I was using the below pricefeed repository as the code was good, and it was also covering a lot of exchanges.

https://github.com/Jolly-Pirate/pricefeed

I had reported about this issue in the witnesses channel, and later I came to know that it was because of the Binance Exchange that the issue was happening. I tweaked the configuration a little bit, and the script started to work again. I thought that was it and did not know that things would break further. Today, I noticed a post and learned that there were some discrepancies in the price feed; some witnesses were signalling wrong price feed data. Apparently, I was also doing the same thing. My witness node was also signalling the wrong price feed.

Source

My wild guess is that it would have been because of exchanges giving wrong data. Later, I came to know about the repository below, and I have started using this repository instead for publishing pricefeed. The good thing about this repository is that it is being maintained properly, I should say, because even two days back, there were a few updates to the repository.

https://github.com/therealwolf42/hive-witness-essentials

For now, I'm using only this repository, and it is very convenient. People who have used the other libraries should not find this difficult. The first part is to copy the config file, add our account and active key, and then run the pricefeed part alone in pm2. There are also other good witness essentials available, which I'm going to be exploring later.

After switching to this repository, I was able to see that the pricefeed was getting updated without any issues. I want to recommend this to my fellow witnesses as well, since it is being maintained properly.


If you like what I'm doing on Hive, you can vote me as a witness with the links below.

Vote @balaz as a Hive Witness

Vote @kanibot as a Hive Engine Witness




0.20105989 BEE
1 comments

This post has been manually curated by @bhattg from Indiaunited community. Join us on our Discord Server.

Do you know that you can earn a passive income by delegating to @indiaunited. We share more than 100 % of the curation rewards with the delegators in the form of IUC tokens.

Here are some handy links for delegations: 100HP, 250HP, 500HP, 1000HP.

image.png

100% of the rewards from this comment goes to the curator for their manual curation efforts. Please encourage the curator @bhattg by upvoting this comment and support the community by voting the posts made by @indiaunited.

0.00000000 BEE