修复微信公众号见证人查询功能

in #witness-category5 years ago

在早些时候,我曾发文说过由于STEEM API节点的版本升级,导致了我见证人列表程序的收益估算功能失效,详情可见:《修复见证人列表收益估算功能》


(图源 :pixabay)

因为平时大部分时间查询见证人功能都是用的这个列表,所以我并未主意到其实公众号的见证人查询功能也有同样的问题存在。

今天在朋友的提醒下,我才想起来这个问题,一试,果然是这样:

如上图所示,每块收益以及日总收益都完全不对。

好在有上次修复见证人列表的经验在,知道问题在于v0.21.0 API中,以下两个参数:

STEEM_CONTENT_REWARD_PERCENT
STEEM_VESTING_FUND_PERCENT

被替换为:

STEEM_CONTENT_REWARD_PERCENT_HF16
STEEM_VESTING_FUND_PERCENT_HF16

所以改起来其实就没有什么难度啦,改完再测试一下:

看起来一切正常!

颇为感慨的是:我刚开始做见证人时,每天赚0.5个块,当时是十多块钱;而现在每天赚10个多块,结果还是十多块钱,不知道是该笑还是该哭。/(ㄒoㄒ)/~~

微信公众号

微信公众号继续欢迎大家关注,有很多方便的小功能,还在不断完善中。

相关链接


Vote For Me As Witness
https://steemit.com/~witnesses type in oflyhigh and click VOTE

Vote @oflyhigh via Steemconnect
Thank you!

Sort:  

恭喜你!您的这篇文章入选 @justyy 今日 (2019-08-19) 榜单 【优秀的文章】, 回复本条评论24小时内领赏,点赞本评论将支持 @dailychina 并增加将来您的奖赏。
@justyy 是CN区的见证人,请支持他,给他投票,或者设置justyy为见证人代理。感谢!@justyy的主要贡献:https://steemyy.com

Congratulations! This post has been selected by @justyy as today's (2019-08-19) 【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后就能拿利息了!

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!

Hello oflyhigh,
Stunning bug - fantastic photograph!

Upvoted and resteemed :D

Coin Marketplace

STEEM 0.32
TRX 0.26
JST 0.039
BTC 94921.11
ETH 3381.56
USDT 1.00
SBD 3.33