BitShares Forum
Main => 中文 (Chinese) => Topic started by: alt on July 30, 2014, 09:30:10 am
-
从 block 91576 到现在(93040) 连续4个多小时没丢一个块了
可喜可贺
-
9万多块了啊 厉害啊
-
+5% +5%
-
受托人都越来越专业了 :P :P :P
-
支持ALT
-
初始受托人数量降到个位数就完美了 +5%
-
<悟空是个好员工>,这本书还有人记得吗? alt就是一个杰出的员工, 我建议alt公开你的别名.我们给你捐献表示敬意!曾经和您共同战斗,是我的荣幸!
-
alt老弟,这个slave客户端只要加“ next_slot_time += 5;”这行代码后编译,是吗?
slave可以和master同时开机而不会相互影响吗?一个代表运行在2个不同的结点是否是BM所允许的。
你做过多少测试?
hi, delegates. we have a solution for hot standby.
set up delegate wallet in 2 machines. one is master, and the other is slave.
master run delegate_loop task at seconds 0,10,20 ....
slave run the task with 5 seconds delay, at 5, 15, 25 .....
Normally master will generate block in time, slave will receive the block less than 5 seconds, than slave will not generate block.
If for some reason, master missed generation, slave didn't receive block from master in 5 seconds, slave will generate.
here is the patch for slave program:
--- a/libraries/client/client.cpp
+++ b/libraries/client/client.cpp
@@ -729,6 +729,7 @@ config load_config( const fc::path& datadir )
uint32_t slot_number = blockchain::get_slot_number( now );
time_point_sec next_slot_time = blockchain::get_slot_start_time( slot_number + 1 );
+ next_slot_time += 5;
ilog( "Rescheduling delegate loop for time: ${t}", ("t",next_slot_time) );
time_point scheduled_time = next_slot_time;
-
ALT会出下面这个问题吗
This will likely cause you to sign 2 different blocks.
How you ensure that they will not sign 2 different blocks ?
-
alt大神不解释
-
<悟空是个好员工>,这本书还有人记得吗? alt就是一个杰出的员工, 我建议alt公开你的别名.我们给你捐献表示敬意!曾经和您共同战斗,是我的荣幸!
哈,谢谢支持,我的帐号在签名上有 :D
-
ALT会出下面这个问题吗
This will likely cause you to sign 2 different blocks.
How you ensure that they will not sign 2 different blocks ?
有可能的,如果 master 生产了块,但 slave 没在5s内收到,就会生成第2个块了。
所以要运行 network_add_node 让 slave 和 master 直连降低它们的通讯 latency.
正常情况是不会有这么大延迟
据说以后会禁止签两个块,到时我们会根据新的规则更新方案,能保证不违规 :)
-
完全不丢块很难,我换了2个服务器了,其中有个服务器用的是ssd还是丢块。连接数好像和主机提供商有关系,用www.hp.com/helion和azure.microsoft.com的云服务器运行5天了链接数都保持20以上。一般的VPS连接数没20小时都要重设
-
+5%
-
我的mister的块,基本是初期安装时丢的,正式运营之前,
已经丢了达77个块,之后两次更换钱包版本,又丢了6个块.
在正常运行状态下丢的,只有一块!!!!