256
中文 (Chinese) / Re: Hello, World. Hello, BitShares.(热烈祝贺bts、pts走出独立行情)
« on: July 31, 2014, 01:23:00 am »厉害了,都不会技术的人怎么抱团呢?有没有300勇士来组个团,一人出点资金。
愿意和我一起组团的请PM我。。。。。我技术不缺就是缺时间和推广。人在北美,需要有人在我睡觉时还醒。
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
厉害了,都不会技术的人怎么抱团呢?有没有300勇士来组个团,一人出点资金。
还要补充一点,昨天晚上我的 slave 由于长时间运行,又遇到老问题,连接数降到很低,导致收包出问题,出现了不少误判,生成了好几个 orphan block你的重启script好像要expert??支持。 具体要如何操作。
所以 slave 上可以让程序定期自动重启,我刚增加了每12小时重启一次
This will likely cause you to sign 2 different blocks.
How you ensure that they will not sign 2 different blocks ?
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:Code: [Select]--- 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;
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:Code: [Select]--- 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;
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:Code: [Select]--- 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;
wallet_account_register how.to.support.beal demo.twitter
20006 unknown_account: unknown account
Unknown local account name!
{"account_name":"to.support.beal"}
th_a wallet.cpp:1270 get_account
{}
th_a wallet.cpp:1288 get_account
{"account_to_register":"how.to.support.beal","public_data":null,"pay_with_account_name":"demo.twitter","delegate_pay_rate":255}
th_a wallet.cpp:2448 register_account
{"account_name":"how.to.support.beal","data":null}
th_a client.cpp:2711 wallet_account_register
{}
th_a common_api_client.cpp:979 wallet_account_register