HF21悬念 by oflyhigh

View this thread on steempeak.com
· @oflyhigh ·
$11.12
HF21悬念
大家都知道STEEM的Hardfork是要见证人批准的,具体需要多少个见证人来批准呢?这是在代码中定义的。

![](https://cdn.steemitimages.com/DQmZG27ZF4ETGCzB6BK7vdXcffCmMcnjQL4KBMo3VLPxFLt/image.png)
(图源 :[pexels.com](https://www.pexels.com/))

定义的如下:
>`#define STEEM_HARDFORK_REQUIRED_WITNESSES     17`

之前我的理解是需要TOP20中的17个见证人同意,实际上是需要21个见证人中的17个同意即可,上述定义后边的备注也说明了这个问题。

>// 17 of the 21 dpos witnesses (20 elected and 1 virtual time) required for hardfork. This guarantees 75% participation on all subsequent rounds.

如果不想看代码,这个数据也可以通过`get_witness_schedule` 这个API获取。
>`{"jsonrpc": "2.0", "method": "condenser_api.get_witness_schedule", "params": [], "id": 1}`

以我随便调用一次的返回为例,其中箭头指向处,就是代表`STEEM_HARDFORK_REQUIRED_WITNESSES`
>![](https://cdn.steemitimages.com/DQmQXmTiZxxPaSRZ8eVXCGdWzHtH1cZ1vMktEoR4kZzzyrn/image.png)

因为轮值见证人(runner_witnesses),是按得票数选出,每21轮更新一次,所以除非所有的备选见证人都运行最新的Hardfork版本,否则无法确定到了硬分叉时机时选出的轮值见证人是什么版本,所以要保证安全的分叉,最好是TOP20中有17个人运行最新HF版本。

但是现在STEEM还有一些反对的声音,抵制HF21,如果反对者获胜,那么HF21将不被应用。

反对的方式就是不运行v0.21.0,而是运行v0.20.12或者v.20.12之前的版本。也就是说,到了分叉时机:
>如果TOP20中运行v0.20.x的见证人多于4人,那么分叉将不被应用;
>TOP20中运行v0.20.x的见证人等于4人,那么有一定概率进行分叉;
>TOP20中如果运行v0.20.x的见证人小于4人,那么分叉将会被应用。

而目前运行v0.20.x版本的见证人为7人
>![](https://cdn.steemitimages.com/DQmRkc4ncZ6hD646L6a6ny248tXZG6vuoA2qnaAWwgk9xuT/image.png)

当然有很大的可能是这些见证人还没来得及更新程序到v0.21.0,硬分叉的时间是`27 August 2019 15:00:00 UTC`,倒是也不着急更新。

但是如果这些见证人一直不更新,那么除非票仓变化,导致运行v0.20.x的见证人掉出TOP20,否则分叉有可能就不被应用哦。

另外一个有趣事是,假如TOP20当中有17人运行v0.21.0,但是如果分叉之前选择witnesses时,某(些)个见证人下线,就会导致排名20之后的见证人补进来,如果这(些)个见证人运行的是v0.20.x,并且轮值见证人也运行的0.20.x(大概率事件),那么分叉也不会被应用。

所以HF21硬分叉还是会有些悬念的:
>HF之前,TOP20中运行旧版本程序的人会升级到新版本吗?
>HF之前,票仓会发生巨大变化,把运行旧版本的见证人踢出去吗?
>HF之前的时刻,TOP20见证人中会有人离线吗?
>HF之前,反对分叉的人,会把更多运行v0.20.x的见证人顶进TOP20吗?

你怎么看待这问题?也许不到最后一刻,不会见分晓,也许现在某个运行v0.21.0的见证人就是反对派,到时候临时切换呢?

不过我还是倾向于分叉会顺利进行,毕竟STEEMIT的财力在那摆着呢,有钱当然就可以任性喽😀

# 相关链接

* https://www.eztk.net/witnesses.php

----
<center><strong>Vote For Me As Witness</strong>
https://steemit.com/~witnesses type in **`oflyhigh`** and click ***`VOTE`***
[![](https://cdn.steemitimages.com/DQmX5NysqT44FBa3bhuWqQ69nAbseu8Nt5YQPn2pYejPVxA/image.png)](https://steemit.com/~witnesses)
[Vote @oflyhigh via Steemconnect](https://steemconnect.com/sign/account-witness-vote?witness=oflyhigh&approve=1)
<strong>Thank you!</strong></center>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 99 others
properties (23)
post_id79,032,497
authoroflyhigh
permlinkhf21
categorywitness-category
json_metadata{"tags":["witness-category","witness","steem","hf21","cn"],"image":["https:\/\/cdn.steemitimages.com\/DQmZG27ZF4ETGCzB6BK7vdXcffCmMcnjQL4KBMo3VLPxFLt\/image.png","https:\/\/cdn.steemitimages.com\/DQmQXmTiZxxPaSRZ8eVXCGdWzHtH1cZ1vMktEoR4kZzzyrn\/image.png","https:\/\/cdn.steemitimages.com\/DQmRkc4ncZ6hD646L6a6ny248tXZG6vuoA2qnaAWwgk9xuT\/image.png","https:\/\/cdn.steemitimages.com\/DQmX5NysqT44FBa3bhuWqQ69nAbseu8Nt5YQPn2pYejPVxA\/image.png"],"links":["https:\/\/www.pexels.com\/","https:\/\/www.eztk.net\/witnesses.php","https:\/\/steemit.com\/~witnesses","https:\/\/steemconnect.com\/sign\/account-witness-vote?witness=oflyhigh&approve=1"],"app":"steemit\/0.1","format":"markdown"}
created2019-08-14 03:35:45
last_update2019-08-14 03:35:45
depth0
children6
net_rshares33,999,766,792,305
last_payout2019-08-21 03:35:45
cashout_time1969-12-31 23:59:59
total_payout_value8.661 SBD
curator_payout_value2.463 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length2,235
author_reputation1,148,153,621,496,884
root_titleHF21悬念
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (163)
@witnessnews ·
This post has been resteemed by @witnessnews.  

**Follow @witnessnews** to keep up with active witness updates.
properties (22)
post_id79,032,659
authorwitnessnews
permlinkre-hf21-20190814t034124z
categorywitness-category
json_metadata{"app":"beem\/0.20.22"}
created2019-08-14 03:41:27
last_update2019-08-14 03:41:27
depth1
children0
net_rshares0
last_payout2019-08-21 03:41:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length112
author_reputation-327,759,701,601
root_titleHF21悬念
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@partiko ·
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!
properties (22)
post_id79,033,771
authorpartiko
permlinkre-hf21-20190814t043020
categorywitness-category
json_metadata{"app":"partiko"}
created2019-08-14 04:30:24
last_update2019-08-14 04:30:24
depth1
children0
net_rshares0
last_payout2019-08-21 04:30:24
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length213
author_reputation39,204,266,552,701
root_titleHF21悬念
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@maiyude ·
$0.06
steemit inc的币貌似差不多全部power down去交易所了吧?
通过分叉搞掉他们币的方案没法玩了……
👍  
properties (23)
post_id79,038,263
authormaiyude
permlinkpw7v9y
categorywitness-category
json_metadata{"tags":["witness-category"],"app":"steemit\/0.1"}
created2019-08-14 07:54:12
last_update2019-08-14 07:54:12
depth1
children3
net_rshares172,984,997,875
last_payout2019-08-21 07:54:12
cashout_time1969-12-31 23:59:59
total_payout_value0.044 SBD
curator_payout_value0.014 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length56
author_reputation21,161,943,744,615
root_titleHF21悬念
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@oflyhigh ·
哈哈,还想着搞掉他们那
醒醒,别睡啦😀
👍  
properties (23)
post_id79,045,765
authoroflyhigh
permlinkpw85xe
categorywitness-category
json_metadata{"tags":["witness-category"],"app":"steemit\/0.1"}
created2019-08-14 11:44:06
last_update2019-08-14 11:44:06
depth2
children0
net_rshares54,491,498,939
last_payout2019-08-21 11:44:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length19
author_reputation1,148,153,621,496,884
root_titleHF21悬念
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@john371911 ·
我覺得也不用追求搞掉他們了,有替代方案:用新的smt,最好是能做去中心化的側鏈,現在的se還是中心化的,而且好貴。這對我們這些用非英語的人剛好,我們寫文、讀的與多數steem持有人不同,利益不一致。
properties (22)
post_id79,046,495
authorjohn371911
permlinkre-maiyude-pw877o
categorywitness-category
json_metadata{"tags":["witness-category"],"app":"steempeak\/1.14.15"}
created2019-08-14 12:11:51
last_update2019-08-14 12:11:51
depth2
children1
net_rshares0
last_payout2019-08-21 12:11:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length99
author_reputation66,408,278,506,348
root_titleHF21悬念
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@oflyhigh ·
$0.04
期待SMT
👍  
properties (23)
post_id79,067,483
authoroflyhigh
permlinkpw964z
categorywitness-category
json_metadata{"tags":["witness-category"],"app":"steemit\/0.1"}
created2019-08-15 00:46:15
last_update2019-08-15 00:46:15
depth3
children0
net_rshares110,163,661,290
last_payout2019-08-22 00:46:15
cashout_time1969-12-31 23:59:59
total_payout_value0.028 SBD
curator_payout_value0.009 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length5
author_reputation1,148,153,621,496,884
root_titleHF21悬念
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)