100%出块,连续4个小时没丢块了

Started by alt, July 30, 2014, 09:30:10 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

king

我的mister的块,基本是初期安装时丢的,正式运营之前,
已经丢了达77个块,之后两次更换钱包版本,又丢了6个块.
在正常运行状态下丢的,只有一块!!!!
BTSX Account: mister
BTSX Delegate :sun.delegate.service,moon.delegate.service

Overthetop

个人微博账号: Overthetop_万里晴空
"块链创新与创业"交流群: 330378613

sfinder

完全不丢块很难,我换了2个服务器了,其中有个服务器用的是ssd还是丢块。连接数好像和主机提供商有关系,用www.hp.com/helion‎和azure.microsoft.com的云服务器运行5天了链接数都保持20以上。一般的VPS连接数没20小时都要重设
微博:星在飘我在找|BTS X 受托人delegate ID:baidu
和中国教育书店合作将20%收入捐献给贫困山区学生。
Cooperating with China Education Bookstore and will donate 20% of delegate income to the poor students

alt

Quote from: sfinder on July 30, 2014, 10:20:28 PM


ALT会出下面这个问题吗
Quote from: emski on July 30, 2014, 08:16:23 PM
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.
正常情况是不会有这么大延迟
据说以后会禁止签两个块,到时我们会根据新的规则更新方案,能保证不违规  :)

alt

Quote from: willaim on July 30, 2014, 07:38:53 PM
<悟空是个好员工>,这本书还有人记得吗? alt就是一个杰出的员工, 我建议alt公开你的别名.我们给你捐献表示敬意!曾经和您共同战斗,是我的荣幸!
哈,谢谢支持,我的帐号在签名上有  :D

yinchanggong

BTSX delegate: google.helloworld    microsoft.helloworld
BTSX Account:yinchg   Manager of BTSXCHINA Charity Fund
[url=http://weibo.com/u/1764434885]引长弓Fate 新浪微博[/url]

sfinder



ALT会出下面这个问题吗
Quote from: emski on July 30, 2014, 08:16:23 PM
This will likely cause you to sign 2 different blocks.
How you ensure that they will not sign 2 different blocks ?
微博:星在飘我在找|BTS X 受托人delegate ID:baidu
和中国教育书店合作将20%收入捐献给贫困山区学生。
Cooperating with China Education Bookstore and will donate 20% of delegate income to the poor students

sfinder

Quote from: sfinder on July 30, 2014, 07:50:40 PM
alt老弟,这个slave客户端只要加" next_slot_time += 5;"这行代码后编译,是吗?

slave可以和master同时开机而不会相互影响吗?一个代表运行在2个不同的结点是否是BM所允许的。

你做过多少测试?


Quote from: alt on July 30, 2014, 05:39:54 AM
Quote from: alt on July 30, 2014, 05:33:00 AM
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;

微博:星在飘我在找|BTS X 受托人delegate ID:baidu
和中国教育书店合作将20%收入捐献给贫困山区学生。
Cooperating with China Education Bookstore and will donate 20% of delegate income to the poor students

willaim

<悟空是个好员工>,这本书还有人记得吗? alt就是一个杰出的员工, 我建议alt公开你的别名.我们给你捐献表示敬意!曾经和您共同战斗,是我的荣幸!
Please contribute PTS to this address if my info is useful for you: PjjYtWpwmwEMA1MK9mjpDpSYzkTMPgjm7X

bitshare007777

初始受托人数量降到个位数就完美了 +5%


Webber

Bitshares2.0 witness node:delegate.webber
Bitshares2.0 API:[url="ws://114.215.116.57:8090"]ws://114.215.116.57:8090[/url]


woolcii


alt

从 block 91576 到现在(93040) 连续4个多小时没丢一个块了
可喜可贺