Steemit.com Followers / Following Count Discrepancy

in #bug-hunting6 years ago (edited)

image.png

Project Information

  • Repository:

https://github.com/steemit/condenser

  • Project Name: Condenser

  • Publisher (if applicable): Steemit.com

Expected behavior

Noticed a jump in followers and, after investigating, determined the counts displayed on Steemit.com are different than what may be obtained via the RPC API or other front end interfaces. This has been confirmed on a couple users including myself.

Actual behavior

Expectation is for follower / following count to generally coincide across the various blockchain interfaces.

How to reproduce

Navigate to your profile page on https://steemit.com/@username and compare to another interface. See GIF.

  • Browser/App version: Microsoft Edge / Google Chrome

  • Operating system: Windows 10

Recording Of The Bug

follow3.gif

GitHub Account

https://github.com/anthonyadavisii


Update: @pjau has submitted GH issue for the following. See below.

https://github.com/steemit/condenser/issues/3135

I have checked the following nodes and counts are normal.

'https://api.steemit.com'
'https://steemd-appbase.steemit.com'
'wss://steemd-appbase.steemit.com'

Update #2: @pjau figured the nodes that steemit.com is using https://api-int.steemit.com so I checked with Beem producing the following error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/sfr/miniconda3/lib/python3.6/site-packages/beem/account.py", line 777, in get_followers
    name_list = [x['follower'] for x in self._get_followers(direction="follower", limit=limit)]
  File "/home/sfr/miniconda3/lib/python3.6/site-packages/beem/account.py", line 823, in _get_followers
    followers = self.steem.rpc.get_followers(query, api='follow')['followers']
TypeError: list indices must be integers or slices, not str
Sort:  
Loading...

You are right. Maybe https://api-int.steemit.com is using hivemind as database for followers.

from beem import Steem
from beem.account import Account
stm = Steem(node="https://api.steemit.com")
acc = Account("anthonyadavisii", steem_instance=stm)
acc.get_follow_count()
{'account': 'anthonyadavisii', 'follower_count': 3616, 'following_count': 2380}

stm = Steem(node="https://api-int.steemit.com")
acc = Account("anthonyadavisii", steem_instance=stm)
acc.get_follow_count()
{'account': 'anthonyadavisii', 'follower_count': 4274, 'following_count': 3153}

There is something wrong....

Steemit says...

While Steemworld says..

Hi, @anthonyadavisii!

You just got a 6.62% upvote from SteemPlus!
To get higher upvotes, earn more SteemPlus Points (SPP). On your Steemit wallet, check your SPP balance and click on "How to earn SPP?" to find out all the ways to earn.
If you're not using SteemPlus yet, please check our last posts in here to see the many ways in which SteemPlus can improve your Steem experience on Steemit and Busy.

There have been a few bugs recently. The follower bug has been ongoing for most of the last week through safari when you are not logged in. I assume what is happening is that as they transfer this to the new storage as they said they were going to in an effort to cut back on their costs, it is reviving the lost followers that has been a known issue since I joined in February.

Congratulations! This post has been upvoted from the communal account, @minnowsupport, by anthonyadavisii from the Minnow Support Project. It's a witness project run by aggroed, ausbitbank, teamsteem, someguy123, neoxian, followbtcnews, and netuoso. The goal is to help Steemit grow by supporting Minnows. Please find us at the Peace, Abundance, and Liberty Network (PALnet) Discord Channel. It's a completely public and open space to all members of the Steemit community who voluntarily choose to be there.

If you would like to delegate to the Minnow Support Project you can do so by clicking on the following links: 50SP, 100SP, 250SP, 500SP, 1000SP, 5000SP.
Be sure to leave at least 50SP undelegated on your account.

YOU JUST GOT UPVOTED

Congratulations,
you just received a 11.02% upvote from @steemhq - Community Bot!

Wanna join and receive free upvotes yourself?
Vote for steemhq.witness on Steemit or directly on SteemConnect and join the Community Witness.

This service was brought to you by SteemHQ.com

Hi @anthonyadavisii!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your UA account score is currently 4.528 which ranks you at #1904 across all Steem accounts.
Your rank has dropped 2 places in the last three days (old rank 1902).

In our last Algorithmic Curation Round, consisting of 195 contributions, your post is ranked at #6.

Evaluation of your UA score:
  • Some people are already following you, keep going!
  • The readers appreciate your great work!
  • Great user engagement! You rock!

Feel free to join our @steem-ua Discord server

Coin Marketplace

STEEM 0.22
TRX 0.20
JST 0.034
BTC 98934.25
ETH 3347.90
USDT 1.00
SBD 3.08