You are viewing a single comment's thread from:

RE: 也谈点赞时间

in #cn-programming8 years ago

继续问
每个帖子中会有一组active_votes列表

                 {'percent': 10000,
                   'reputation': '47911707536699',
                   'rshares': '26659096127486',
                   'time': '2017-02-16T03:38:03',
                   'voter': 'abit',
                   'weight': '10820714486258578240'}

列表项之一如上。
那么问题来了

问题一

一人点赞贡献的 rshares = VESTS数量 * 剩余能量 * 点赞百分比 * 0.005
这个 rshares是否是上述字典中rshares?

问题二

上述字典中的weight是如何得出?不应该和帖子的weight计算方法相同吧?

问题三

我累加所有用户的得到total_rshares,和帖子显示的total_rshares基本相同

问题四

我累加所有用户的得到weight,和帖子显示的total_weight 有很大差异,那么单个的用户weight的意义是?

Sort:  

rshares 就是那个 rshares 。至于 weight ,那个公式我记不太住,大概是:

所有点赞贡献的 rshares ,相加得到 vote_rshares 
踩的贡献 rshares 为负数,所以不算

total_weight = vote_rshares * 常数S / (vote_rshares + 常数S)

每次点赞的初始 weight = 点赞后的 total_weight - 点赞前的 total_weight

每次点赞的最终 weight = 初始 weight * min(点赞时间-发帖时间, 30分钟) / 30分钟

多次点同一贴 weight = 0

点赞奖 = 帖子总奖励 * 25% * weight / total_weight

从上面的公式可以看到:

  • total_rshares 越小,贡献同样 rshares 得到的 weight 越多,也就是越早点越好
  • total_rshares 较小时,贡献大量 rshares 仍然可以得到较高 weight
  • 随着 total_rshares 增加,total_weight 越来越接近常数S,到后来,即使贡献再多 rshares 也得不到高 weight
  • 所有 weight 相加的结果和 total_weight 之间的差异,就是因为有人在30分钟之类点赞的,或者多次投票,差额部分归作者了。

@smarketing @deanliu @oflyhigh

这个讲的太精细了
我恨不得用BT的号给你点个赞啊!!(可惜没有啊)

你牛,了解这么详细,
越早点肯定是越好,1000SP的人 在前5分钟投,以及没有人投的情况 能分 0.1SP, 和10000SP在30分钟后被人抢了 可能是一样多

Coin Marketplace

STEEM 0.19
TRX 0.16
JST 0.030
BTC 65754.91
ETH 2670.18
USDT 1.00
SBD 2.88