关于见证人收益估算功能出错的说明 / api.steemit.com was suddenly upgraded to 0.21.0
今天按惯例检查了一下我的见证人列表程序,结果发现其它功能还算正常,但是收益估算严重偏差。
以TOP10见证人为例,单日收益竟然高达3249.50STEEM:
我的见证人日收益,显示的值竟然高达99.92 STEEM:
我是要发家了嘛?仔细想想,估计是想多了,看了一下steemd.com,随机见证人每个块的奖励还是1.184 SP,也就是说上述显示通通是幻觉。
问题出在哪里呢?我在本地用anyx.io
做节点,跑了一下计算程序,显示一切正常。
也就是说TOP20的见证人收益约为324SP每天,随机见证人大家平分1624.7452个SP,TOP20和随机见证人每块收益分别为:
witness_reward (TOP 20) 0.23694201410676866
witness_reward (RANDOM) 1.1847100705338434
这数据还算贴题,那服务器的脚本哪里出错了呢?我想了想,唯一的差异就是服务器脚本用的是api.steemit.com
节点。
那么用api.steemit.com
节点跑一下程序试试,结果出现如下错误:
STEEM_CONTENT_REWARD_PERCENT = cfg['STEEM_CONTENT_REWARD_PERCENT']
KeyError: 'STEEM_CONTENT_REWARD_PERCENT'
可是这个参数怎么会没有了呢?看了一下STEEM的github最新代码,果然把STEEM_CONTENT_REWARD_PERCENT
这个参数拿掉了,可是这个参数即便拿掉不也应该是硬叉21之后的事情嘛?
然后看了一下api.steemit.com
节点的版本,果然已经是0.21.0了
所以问题的原因就是:api.steemit.com 突然升级至0.21.0(was suddenly upgraded to 0.21.0)导致我的程序判断出错。
哎,作为服务提供者,你不会事先发个声明嘛?说升级就升级,也太任性了吧?
不过没办法,有钱就可以这么任性,至于我们这样没钱的,只好认命的去改程序喽?/(ㄒoㄒ)/~~
English version:
The sudden upgrade of api.steemit.com to 0.21.0 caused my program to misjudge.
I will modify the program as soon as possible
https://steemit.com/~witnesses type in
oflyhigh
and click VOTE
![](https://steemitimages.com/640x0/https://cdn.steemitimages.com/DQmX5NysqT44FBa3bhuWqQ69nAbseu8Nt5YQPn2pYejPVxA/image.png)
Vote @oflyhigh via Steemconnect
Thank you!
恭喜你!您的这篇文章入选 @justyy 今日 (2019-08-01) 榜单 【优秀的文章】, 回复本条评论24小时内领赏,点赞本评论将支持 @dailychina 并增加将来您的奖赏。
@justyy 是CN区的见证人,请支持他,给他投票,或者设置justyy为见证人代理。感谢!@justyy的主要贡献:https://steemyy.com
Congratulations! This post has been selected by @justyy as today's (2019-08-01) 【Good Posts】, Steem On! Reply to this message in 24 hours to get rewards. Upvote this comment to support the @dailychina and increase your future rewards! ^_^
SteemIt 工具、API接口、机器人和教程
SteemIt Tools, Bots, APIs and Tutorial
If you believe what I am doing, please consider a spare vote voting me here, thank you very much indeed.
@justyy - the author of https://SteemYY.com and I have been a Steem Witness for more than a year now.
区块链中文第一大银行简介:你的比特币拿不了利息,但是你把比特币换成steem后就能拿利息了!
thx
This post has been resteemed by @witnessnews.
Follow @witnessnews to keep up with active witness updates.
Thank you so much for participating in the Partiko Delegation Plan Round 1! We really appreciate your support! As part of the delegation benefits, we just gave you a 3.01% upvote! Together, let’s change the world!
膜拜~
来自于WhereIn Android
膜拜~
Posted using Partiko Android