Author Topic: YOYOW测试程序包下载地址及使用说明  (Read 7661 times)

0 Members and 1 Guest are viewing this topic.

Offline yoyowd

  • Full Member
  • ***
  • Posts: 69
    • View Profile
  • BitShares: y0y0wd
YOYOW测试程序包下载地址及使用说明
« on: August 18, 2017, 02:09:49 am »
报名测试请在《报名帖》跟帖回复想注册的账号名和公钥,不要在这里回帖。报名帖地址: https://bitsharestalk.org/index.php/topic,24838.0.html

如果发现问题,可能是程序BUG的,请在下载地址(github上)提 issue 。如果按步骤操作碰到问题,请直接在这里回帖,提问题要具体,比如哪一步出了什么错,讲不清楚的话可以加上截图,这样可以针对性的回答,以后别人碰到同样问题也可以在这里找到答案。也可以在群里问,一般会有人解答。

见证人交流群已超过 100 人,请加 applepepe 微信邀请入群。


希望大家互相帮助,并逐渐形成知识经验积累。比如,在这里回帖解答问题,或者做新教程甚至视频教程,或者报告BUG。对于做出贡献的,正式上线后我们会从运营基金里拿出一定代币作为奖励,具体规则待定。

遇到问题请参考本文内“常见问题”章节。

-------------------- 分割线 --------------------

下载地址 https://github.com/yoyow-org/yoyow-core-testnet/releases/tag/20170905

下载页面有两个程序包:
一个是 Windows 版 yoyow-win-xxxxx.zip
一个是 Ubuntu 版 yoyow-xxxxx.tgz

下面分别介绍。

一、Windows
1. 解压程序包,比如解到 D:\yoyow\,生成一个新目录 yoyow-win-x64-20170905,里面包含4个文件:
yoyow_node.exe
yoyow_client.exe
msvcp140.dll
vcruntime140.dll

2. 运行节点。打开一个命令行窗口,执行
D:
cd D:\yoyow\yoyow-win-x64-20170905
yoyow_node --rpc-endpoint

等待网络连接成功,屏幕上会有每3秒一个块的显示信息。

3288264ms th_a       application.cpp:573           handle_block         ] Got block: #1934 0000078ea29f65a543e3a75fcd542fd5de246d7f time: 2017-08-18T01:54:48 latency: 264 ms from: 28465/init11  irreversible: 1922 (-12)

3. 运行命令行钱包。再打开一个命令行窗口,执行
D:
cd D:\yoyow\yoyow-win-x64-20170905
yoyow_client

会连接到上面步骤运行的节点,最后显示如下提示

new >>>


二、Ubuntu
1. 解压,假设下载的文件为 /home/ubuntu/yoyow20170905.tgz,开一个窗口执行下面命令
cd /home/ubuntu
tar xzf yoyow20170905.tgz
cd yoyow20170905

进入解压产生的新目录yoyow20170905,里面有两个文件
yoyow_node
yoyow_client


2. 运行节点。先启动screen,然后在里面启动节点。
screen -S yoyow_node
./yoyow_node --rpc-endpoint

等待网络连接成功,屏幕上会有每3秒一个块的显示信息。

3288264ms th_a       application.cpp:573           handle_block         ] Got block: #1934 0000078ea29f65a543e3a75fcd542fd5de246d7f time: 2017-08-18T01:54:48 latency: 264 ms from: 28465/init11  irreversible: 1922 (-12)


3. 运行命令行钱包。再启动一个screen,在里面启动命令行钱包。
screen -S yoyow_client
./yoyow_client

会连接到上面步骤运行的节点,最后显示如下提示

new >>>


三、钱包命令介绍

1. 显示new的时候先设置钱包密码,比如密码是yoyow-pass,如下
new >>> set_password yoyow-pass
set_password yoyow-pass
null
locked >>>

2. 解锁钱包
locked >>> unlock yoyow-pass
unlock yoyow-pass
null
unlocked >>>

3.查看同步状态
unlocked >>> info
info
{
  "head_block_num": 1267,
  "head_block_id": "000004f32d412db8862379b34996c3c7b0acdeea",
  "head_block_age": "2 seconds old",
...

4.生成密钥对,准备创建账号
unlocked >>> suggest_brain_key
suggest_brain_key
{
  "brain_priv_key": "NONCOME WOG LIGULE FARAWAY ADEVISM ALOOSE SORCER",
  "wif_priv_key": "5Hqwx3xXMYZ55Pko9nzw34234234nXHcGfNQjNEL23424w7Py",
  "pub_key": "YYW8P9MYHCRJoVsSQsdfaoYk9aWVBMKwasdfsdfsdfsVY6HBz5K7e"
}

里面YYW开头的是公钥,提供给授权注册商。wif_priv_key自己存好,不要泄露。

5.账号注册完之后,比如账号UID是25638,账号名init,可以用命令查看:
unlocked >>> get_account 25638
get_account 25638
{
  "uid": 25638,
  "name": "init",
  "owner": {
    "weight_threshold": 1,
    "account_auths": [],
    "account_uid_auths": [],
...

也可用账户名作参数查看:
unlocked >>> get_account init
get_account init
{
  "uid": 25638,
  "name": "init",
  "owner": {
    "weight_threshold": 1,
    "account_auths": [],
    "account_uid_auths": [],
...

6.检查账户余额
unlocked >>> list_account_balances init
list_account_balances init
1000000000 YOYO

7.导入私钥
unlocked >>> import_key init 5Hqwx3xXMYZ55Pko9nzw34234234nXHcGfNQjNEL23424w7Py

8. 测试转账
unlocked >>> transfer init test 100 YOYO "" true


9.再用前面的命令生成一对密钥,准备创建见证人
unlocked >>> suggest_brain_key
suggest_brain_key
{
  "brain_priv_key": "NONCOME WOG LIGULE FARAWAY ADEVISM ALOOSE SORCER",
  "wif_priv_key": "5A34DFDSFereGDGGERTRT87UJLKDFHGSHFFKDSFSDFHE4532624535G",
  "pub_key": "YYW4UOIUFDSfjoiw750alsjfoiujasdjflsajdfaiyuhoasifjdOISUJKfsdh"
}

10.创建见证人
unlocked >>> create_witness 25638 YYW4UOIUFDSfjoiw750alsjfoiujasdjflsajdfaiyuhoasifjdOISUJKfsdh 10000 YOYO "" true

11.检查见证人
unlocked >>> get_witness init

12.见证人加押金
unlocked >>> update_witness 25638 null 20000 YOYO null true
因为不需要改出块签名密钥以及链接,所以填null

13.见证人投票
给自己投票
unlocked >>> update_witness_votes init [init] [] true
给别人投票
unlocked >>> update_witness_votes init [other] [] true
撤票
unlocked >>> update_witness_votes init [] [init] true

14.设投票代理
unlocked >>> set_voting_proxy init other true
取消代理(也是用null)
unlocked >>> set_voting_proxy init null true

15. 然后用get_witness命令看得票数量,info命令可以检查是否已经被投上,或者按抵押排上

16.退出命令行钱包
Window按CTRL+C
Ubuntu按CTRL+D


四、配置出块节点。
回到节点程序窗口,按CTRL+C,等程序自动退出。
重新执行命令时,带上自己见证人的uid和出块密钥作为参数。

Windows:
yoyow_node --rpc-endpoint -w 25638 --private-key "[\"YYW4UOIUFDSfjoiw750alsjfoiujasdjflsajdfaiyuhoasifjdOISUJKfsdh\",\"5A34DFDSFereGDGGERTRT87UJLKDFHGSHFFKDSFSDFHE4532624535G\"]"

Ubuntu:
./yoyow_node --rpc-endpoint -w 25638 --private-key '["YYW4UOIUFDSfjoiw750alsjfoiujasdjflsajdfaiyuhoasifjdOISUJKfsdh","5A34DFDSFereGDGGERTRT87UJLKDFHGSHFFKDSFSDFHE4532624535G"]'

正常出块时,会显示类似如下信息

3249002ms th_a       witness.cpp:183               block_production_loo ] Generated block #1921 00000781196d14610bc781ce1880193d153c0200 with timestamp 2017-08-18T01:54:09 at time 2017-08-18T01:54:09 by 28182/init10

五、重新启动命令行钱包,连上节点,进行其他检查测试

1.用get_witness命令可以看到出块信息,比如
unlocked >>> get_witness init1
get_witness init1
{
...
"last_confirmed_block_num": 1975,

如果看到
    "signing_key": "YYW1111111111111111111111111111111114T1Anm",
表示见证人已经离线,需要用 update_witness 命令重新设置出块签名密钥,才能正常出块。
unlocked >>> update_witness 25638 YYW4UOIUFDSfjoiw750alsjfoiujasdjflsajdfaiyuhoasifjdOISUJKfsdh null null null true

2.用 get_full_account 命令可以看到更详细的账户信息,包括出块奖励等
unlocked >>> get_full_account init1
get_full_account init1
{
...
"uncollected_witness_pay": 55500000,

数值除以10万即为实际YOYO数额

3.领取出块奖励/工资
collect_witness_pay init1 100 YOYO true

4. 不想当见证人了的话,先设置离线
unlocked >>> update_witness 25638 YYW1111111111111111111111111111111114T1Anm null null null true
然后将押金改为0,过一段时间会退回(如果没有因为作恶被扣除的话)
unlocked >>> update_witness 25638 null 0 YOYO null true

5. 理事会和见证人类似,命令里witness替换成committee_member,密钥去掉即可。

6. 查看账户操作历史
get_relative_account_history init null 0 100 0

-------------------- 分割线 --------------------

常见问题

screen里翻屏按ctrl+a,再按esc,再按pageup;看完退出按q。

如果node里长时间没有输出,卡住了,请检查机器时间是否正确,要精确到秒。

如果node里出现 unlinkable 的问题,目前的临时解决方案是启动命令里加一个 --replay 参数,如:
./yoyow_node --rpc-endpoint -w 209420985 --private-key '["YYW82qoU3N6dwoRHRM4y3QhGF3XQrrrcSUCnmDJJZondR7GSfaPfY","privkey"]' --replay

现在测试人数较多,新建的见证人,一段时间不出块属于正常情况。加速的办法:找人投票,以及增加抵押。投票见效较快。
« Last Edit: September 08, 2017, 04:19:51 am by yoyowd »

Offline Yao

  • Hero Member
  • *****
  • Posts: 500
  • QQ/WeChat(微信):664349247
    • View Profile
  • BitShares: yao
  • GitHub: imYao
Re: YOYOW测试程序包下载地址及使用说明
« Reply #1 on: August 18, 2017, 04:17:01 am »
这教程,运行见证人的技术门槛大大降低了呀!
BTS witness: witness.yao
BTS Proxy: yao

Offline crzme

  • Full Member
  • ***
  • Posts: 98
    • View Profile
Re: YOYOW测试程序包下载地址及使用说明
« Reply #2 on: August 18, 2017, 04:29:01 am »
 +5% bravo!

Offline kimziv

Re: YOYOW测试程序包下载地址及使用说明
« Reply #3 on: August 18, 2017, 05:06:21 am »
我的yoyow公钥是:YYW5DdCvGe6WJuzGFFmgJBxGjPeyGf7x4Gfy77xvfbUViWJcvFtL4
麻烦注册一下,名字用 kimziv
« Last Edit: August 18, 2017, 05:10:34 am by kimziv »
YOYOW---You Own Your Own Words

Offline vianull

  • Newbie
  • *
  • Posts: 15
    • View Profile
  • BitShares: vianull
Re: YOYOW测试程序包下载地址及使用说明
« Reply #4 on: August 18, 2017, 05:39:33 am »
申请注册账号
公钥:YYW5FE1CMp9bsUMpFjCsZhSPg8YigQfd4n3nhX3rgWUyMFnZ2NFnK
名字用 vianull


Offline hisonchen

Re: YOYOW测试程序包下载地址及使用说明
« Reply #5 on: August 18, 2017, 06:04:46 am »
申请注册
账号公钥:YYW7LTVw4sACtFjnjnTJbgmS5twMXRKmG2cme8RJJqDFnw4awEoEN
用户名用:hisonchen
谢谢,联系方式[email protected]

Offline freedom

  • Sr. Member
  • ****
  • Posts: 296
    • View Profile
Re: YOYOW测试程序包下载地址及使用说明
« Reply #6 on: August 18, 2017, 06:20:30 am »
账号申请
公钥:YYW61GA9GaSkH8h1gJQGoybtJUKPBkLmqqwgcJaXYk9nkjL5heryi
名字:freedom

Offline crzme

  • Full Member
  • ***
  • Posts: 98
    • View Profile
Re: YOYOW测试程序包下载地址及使用说明
« Reply #7 on: August 18, 2017, 06:36:12 am »
账号申请
公钥:YYW5c1CmQPBCDwWumFNxtGmhpVs6SZGqkT5HTRzpsp7ETJydaV8dY
名字:crzme

Offline David78

  • Newbie
  • *
  • Posts: 1
    • View Profile
  • BitShares: rick-h
Re: YOYOW测试程序包下载地址及使用说明
« Reply #8 on: August 18, 2017, 06:51:14 am »
申请注册 公钥:YYW6W914TfDEsKVBMGbXgSAM1Va1KYFaxgcJP5DeWWBxXg8Ufsn1R
用户名:  rick-h

Offline Yao

  • Hero Member
  • *****
  • Posts: 500
  • QQ/WeChat(微信):664349247
    • View Profile
  • BitShares: yao
  • GitHub: imYao
Re: YOYOW测试程序包下载地址及使用说明
« Reply #9 on: August 18, 2017, 07:07:44 am »
账号申请:
公钥:YYW5mp8X5RDzBCUFDHdriP2ybbKgPLJDNo3P6qwg43jppqwW4U24b
账户名:yao
BTS witness: witness.yao
BTS Proxy: yao

Offline taoljj

  • Full Member
  • ***
  • Posts: 175
    • View Profile
Re: YOYOW测试程序包下载地址及使用说明
« Reply #10 on: August 18, 2017, 08:04:42 am »
ID:taoljj
公钥:YYW8PbAHgjATEMKTcghZhjWPEqzN1FHgK7jLFtbVDagBZ9noyu4AA
BTS      Witness: delegate.taoljj

Offline BrianStacy

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: YOYOW测试程序包下载地址及使用说明
« Reply #11 on: August 18, 2017, 08:07:13 am »
申请注册
公钥:YYW7E2GejEfZLmYasKozhkAztQ7b7dsZgpQVq9WftFu2PwybaoGVC
名字:BrianStacy

Offline gordo

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: YOYOW测试程序包下载地址及使用说明
« Reply #12 on: August 18, 2017, 08:17:45 am »
ID: gordo
公钥:  YYW76eHbyLVxWHCW3PfFTBMwpZ55PotNTQ44SCDjPo5X8VeREakdt

Offline yoyowd

  • Full Member
  • ***
  • Posts: 69
    • View Profile
  • BitShares: y0y0wd
Re: YOYOW测试程序包下载地址及使用说明
« Reply #13 on: August 18, 2017, 08:54:05 am »
申请注册 公钥:YYW6W914TfDEsKVBMGbXgSAM1Va1KYFaxgcJP5DeWWBxXg8Ufsn1R
用户名:  rick-h
用户名不能带横杠

Offline feelapi

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: YOYOW测试程序包下载地址及使用说明
« Reply #14 on: August 18, 2017, 10:27:04 am »
申请注册
公钥:YYW7E6J2CLmcJeBHFngdJpEkpmrRoZjgKwjvP6MwNjQ6JuasNAvvm
名字:feel

Offline dumdum

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: YOYOW测试程序包下载地址及使用说明
« Reply #15 on: August 18, 2017, 04:05:54 pm »
申请注册
公钥:YYW51N89t5cz2w9RDB1ysmL1WZ1DD9PNykCQWYj4ZV37aVYjRQRkm
名字:dumdumgal

Offline yoyowd

  • Full Member
  • ***
  • Posts: 69
    • View Profile
  • BitShares: y0y0wd
Re: YOYOW测试程序包下载地址及使用说明
« Reply #16 on: August 18, 2017, 05:50:33 pm »
申请注册
公钥:YYW51N89t5cz2w9RDB1ysmL1WZ1DD9PNykCQWYj4ZV37aVYjRQRkm
名字:dumdumgal
已建

Offline donzi88

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: YOYOW测试程序包下载地址及使用说明
« Reply #17 on: August 19, 2017, 01:33:31 am »
申请注册账号
公钥:YYW8DcoJX8b4FZHhGvHBpRYZmGYZjdvA7xWaMkcCkcxbK1ob3jzcU
名字用 dongzi

Offline yoyowd

  • Full Member
  • ***
  • Posts: 69
    • View Profile
  • BitShares: y0y0wd
Re: YOYOW测试程序包下载地址及使用说明
« Reply #18 on: August 19, 2017, 09:48:43 am »
申请注册账号
公钥:YYW8DcoJX8b4FZHhGvHBpRYZmGYZjdvA7xWaMkcCkcxbK1ob3jzcU
名字用 dongzi
已建

Offline mdc0917

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: YOYOW测试程序包下载地址及使用说明
« Reply #19 on: August 19, 2017, 10:03:39 am »
账号公钥:YYW5E9ge86jfEsUVVTvRB8TxyQqJX1Ltvbfomu65e26W479ujXPQC
用户名用:mdc0917

Offline yoyowd

  • Full Member
  • ***
  • Posts: 69
    • View Profile
  • BitShares: y0y0wd
Re: YOYOW测试程序包下载地址及使用说明
« Reply #20 on: August 19, 2017, 10:34:03 am »
账号公钥:YYW5E9ge86jfEsUVVTvRB8TxyQqJX1Ltvbfomu65e26W479ujXPQC
用户名用:mdc0917
已建

Offline Cosmos

Re: YOYOW测试程序包下载地址及使用说明
« Reply #21 on: August 20, 2017, 06:54:16 am »
Hello everyone! i need help. Error on the node. Please help me fix it.

Offline Cosmos

Re: YOYOW测试程序包下载地址及使用说明
« Reply #22 on: August 20, 2017, 06:55:23 am »
unlocked »> import_key init 5K57F2c2seTz1CHs8HrqGRJMbMVrdJSDmKpU4Nf2fviUDHpAtL2
import_key init 5K57F2c2seTz1CHs8HrqGRJMbMVrdJSDmKpU4Nf2fviUDHpAtL2
false

unlocked »> transfer init test 100 YOYO "" true
transfer init test 100 YOYO "" true
10 assert_exception: Assert Exception
rec && rec->name == account_name_or_id:
    {}
    th_a  wallet.cpp:617 graphene::wallet::detail::wallet_api_impl::get_account

    {"from":"init","to":"test","amount":"100","asset_symbol":"YOYO","memo":"","broadcast":true}
    th_a  wallet.cpp:2351 graphene::wallet::detail::wallet_api_impl::transfer

Offline abit

  • Committee member
  • Hero Member
  • *
  • Posts: 3302
    • View Profile
    • Steemit Blog
  • BitShares: abit
  • GitHub: abitmore
Re: YOYOW测试程序包下载地址及使用说明
« Reply #23 on: August 20, 2017, 09:06:38 am »
unlocked »> import_key init 5K57F2c2seTz1CHs8HrqGRJMbMVrdJSDmKpU4Nf2fviUDHpAtL2
import_key init 5K57F2c2seTz1CHs8HrqGRJMbMVrdJSDmKpU4Nf2fviUDHpAtL2
false

unlocked »> transfer init test 100 YOYO "" true
transfer init test 100 YOYO "" true
10 assert_exception: Assert Exception
rec && rec->name == account_name_or_id:
    {}
    th_a  wallet.cpp:617 graphene::wallet::detail::wallet_api_impl::get_account

    {"from":"init","to":"test","amount":"100","asset_symbol":"YOYO","memo":"","broadcast":true}
    th_a  wallet.cpp:2351 graphene::wallet::detail::wallet_api_impl::transfer
"init" is the developer's account name. You need your own account name. To get a name, please reply in the other post, with a name you want and a public key which you can generate with "suggest_brain_key" command, and wait for a while, they will create an account for you.
BTS account: abit
BTS committee member: abit
BTS witness: in.abit

Offline 1&0

  • Full Member
  • ***
  • Posts: 161
  • 努力总归是好的!
    • View Profile
  • BitShares: novia
Re: YOYOW测试程序包下载地址及使用说明
« Reply #24 on: August 21, 2017, 02:53:16 am »
yoyow_node --rpc-endpoint -w 209418181 --private-key "[\"YYW6hmVL3fVTwygS6V7fwEoj3jLpzYXKKByqQTyoDNvXhRDcYb5ZQ\",\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\"]"

运行上面命令后

3080376ms th_a       application.cpp:573           handle_block         ] Got block: #87221 000154b5ecb40a080da5d2c8db77954337bbbcf2 time: 2017-08-21T02:51:18 latency: 2376 ms from: 26264/init2  irreversible: 87189 (-32)
3082918ms th_a       application.cpp:573           handle_block         ] Got block: #87222 000154b6c5e7a999e43f56aed476303983ec9459 time: 2017-08-21T02:51:21 latency: 1918 ms from: 209410948/freedom  irreversible: 87191 (-31)
3085941ms th_a       application.cpp:573           handle_block         ] Got block: #87223 000154b762ad89868b2493ac0befb25465f0ec4b time: 2017-08-21T02:51:24 latency: 1941 ms from: 209408958/still  irreversible: 87191 (-32)

而不是类似

3249002ms th_a       witness.cpp:183               block_production_loo ] Generated block #1921 00000781196d14610bc781ce1880193d153c0200 with timestamp 2017-08-18T01:54:09 at time 2017-08-18T01:54:09 by 28182/init10

是正常的吗?是不是得运行一段时间才会出现上面的信息?

Offline yoyowd

  • Full Member
  • ***
  • Posts: 69
    • View Profile
  • BitShares: y0y0wd
Re: YOYOW测试程序包下载地址及使用说明
« Reply #25 on: August 21, 2017, 09:01:32 am »
yoyow_node --rpc-endpoint -w 209418181 --private-key "[\"YYW6hmVL3fVTwygS6V7fwEoj3jLpzYXKKByqQTyoDNvXhRDcYb5ZQ\",\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\"]"

运行上面命令后

3080376ms th_a       application.cpp:573           handle_block         ] Got block: #87221 000154b5ecb40a080da5d2c8db77954337bbbcf2 time: 2017-08-21T02:51:18 latency: 2376 ms from: 26264/init2  irreversible: 87189 (-32)
3082918ms th_a       application.cpp:573           handle_block         ] Got block: #87222 000154b6c5e7a999e43f56aed476303983ec9459 time: 2017-08-21T02:51:21 latency: 1918 ms from: 209410948/freedom  irreversible: 87191 (-31)
3085941ms th_a       application.cpp:573           handle_block         ] Got block: #87223 000154b762ad89868b2493ac0befb25465f0ec4b time: 2017-08-21T02:51:24 latency: 1941 ms from: 209408958/still  irreversible: 87191 (-32)

而不是类似

3249002ms th_a       witness.cpp:183               block_production_loo ] Generated block #1921 00000781196d14610bc781ce1880193d153c0200 with timestamp 2017-08-18T01:54:09 at time 2017-08-18T01:54:09 by 28182/init10

是正常的吗?是不是得运行一段时间才会出现上面的信息?
Got 那些表示网络已经联通,可以正常收到其他见证人生成的区块。from: 209410948/freedom 表示出块人。

Generated 那句表示你自己的见证人已经开始正常出块,确实需要等一会,但测试环境里时间应该不会太长,一般几分钟。

如果一直没有看到自己出块,按说明的第五步检查下,很可能是因为是离线状态了。

另外 latency: 1941 ms这个表示延迟,一般应该在1000ms以下,如果是负数或者太大,都有问题。如果每块的延迟都有问题,并且大小差不多,请检查下电脑时间,做好时间同步。如果偶尔有一块延迟偏大或者偏小,则可能是突发网络问题,或者出那一块的见证人有时间同步问题。
« Last Edit: August 21, 2017, 09:07:58 am by yoyowd »

Offline 1&0

  • Full Member
  • ***
  • Posts: 161
  • 努力总归是好的!
    • View Profile
  • BitShares: novia
Re: YOYOW测试程序包下载地址及使用说明
« Reply #26 on: August 21, 2017, 10:33:30 am »
yoyow_node --rpc-endpoint -w 209418181 --private-key "[\"YYW6hmVL3fVTwygS6V7fwEoj3jLpzYXKKByqQTyoDNvXhRDcYb5ZQ\",\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\"]"

运行上面命令后

3080376ms th_a       application.cpp:573           handle_block         ] Got block: #87221 000154b5ecb40a080da5d2c8db77954337bbbcf2 time: 2017-08-21T02:51:18 latency: 2376 ms from: 26264/init2  irreversible: 87189 (-32)
3082918ms th_a       application.cpp:573           handle_block         ] Got block: #87222 000154b6c5e7a999e43f56aed476303983ec9459 time: 2017-08-21T02:51:21 latency: 1918 ms from: 209410948/freedom  irreversible: 87191 (-31)
3085941ms th_a       application.cpp:573           handle_block         ] Got block: #87223 000154b762ad89868b2493ac0befb25465f0ec4b time: 2017-08-21T02:51:24 latency: 1941 ms from: 209408958/still  irreversible: 87191 (-32)

而不是类似

3249002ms th_a       witness.cpp:183               block_production_loo ] Generated block #1921 00000781196d14610bc781ce1880193d153c0200 with timestamp 2017-08-18T01:54:09 at time 2017-08-18T01:54:09 by 28182/init10

是正常的吗?是不是得运行一段时间才会出现上面的信息?
Got 那些表示网络已经联通,可以正常收到其他见证人生成的区块。from: 209410948/freedom 表示出块人。

Generated 那句表示你自己的见证人已经开始正常出块,确实需要等一会,但测试环境里时间应该不会太长,一般几分钟。

如果一直没有看到自己出块,按说明的第五步检查下,很可能是因为是离线状态了。

另外 latency: 1941 ms这个表示延迟,一般应该在1000ms以下,如果是负数或者太大,都有问题。如果每块的延迟都有问题,并且大小差不多,请检查下电脑时间,做好时间同步。如果偶尔有一块延迟偏大或者偏小,则可能是突发网络问题,或者出那一块的见证人有时间同步问题。

多谢,已经有块出来了,时间也同步了,非常感谢!

Offline lyclub

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: YOYOW测试程序包下载地址及使用说明
« Reply #27 on: August 21, 2017, 02:46:58 pm »
申请注册账号
公钥:YYW77ix1EZSGpzD4pUbnyQ6CRjTV6bfm8kRrDB9txkwhy4JEjnSNs
名字用 lyclub

Offline anychto

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: YOYOW测试程序包下载地址及使用说明
« Reply #28 on: August 21, 2017, 07:26:25 pm »
Code: [Select]
1149000ms th_a       witness.cpp:195               block_production_loo ] Not producing block for 209420985 because I don't have the private key for YYW82qoU3N6dwoRHRM4y3QhGF3XQrrrcSUCnmDJJZondR7GSfaPfY
1150000ms th_a       witness.cpp:195               block_production_loo ] Not producing block for 209420985 because I don't have the private key for YYW82qoU3N6dwoRHRM4y3QhGF3XQrrrcSUCnmDJJZondR7GSfaPfY
1151000ms th_a       witness.cpp:195               block_production_loo ] Not producing block for 209420985 because I don't have the private key for YYW82qoU3N6dwoRHRM4y3QhGF3XQrrrcSUCnmDJJZondR7GSfaPfY
试了几次都出现丢块,回头看记录的时候发现错误提示是这个。
不过在运行的时候已经把privkey也追加到运行参数里面了,可能是什么原因导致出块失败了呢。
有几次启动程序都会出现 Not producing block because production is disabled until we receive a recent block (see: --enable-stale-production),似乎需要反复启动几次程序才能接收其他人的出块。

运行的指令是这个(私钥用privkey代替了):
Code: [Select]
./yoyow_node --rpc-endpoint -w 209420985 -private-key '["YYW82qoU3N6dwoRHRM4y3QhGF3XQrrrcSUCnmDJJZondR7GSfaPfY","privkey"]'
« Last Edit: August 21, 2017, 07:31:57 pm by anychto »

Offline yoyowd

  • Full Member
  • ***
  • Posts: 69
    • View Profile
  • BitShares: y0y0wd
Re: YOYOW测试程序包下载地址及使用说明
« Reply #29 on: August 21, 2017, 09:40:43 pm »
Code: [Select]
1149000ms th_a       witness.cpp:195               block_production_loo ] Not producing block for 209420985 because I don't have the private key for YYW82qoU3N6dwoRHRM4y3QhGF3XQrrrcSUCnmDJJZondR7GSfaPfY
1150000ms th_a       witness.cpp:195               block_production_loo ] Not producing block for 209420985 because I don't have the private key for YYW82qoU3N6dwoRHRM4y3QhGF3XQrrrcSUCnmDJJZondR7GSfaPfY
1151000ms th_a       witness.cpp:195               block_production_loo ] Not producing block for 209420985 because I don't have the private key for YYW82qoU3N6dwoRHRM4y3QhGF3XQrrrcSUCnmDJJZondR7GSfaPfY
试了几次都出现丢块,回头看记录的时候发现错误提示是这个。
不过在运行的时候已经把privkey也追加到运行参数里面了,可能是什么原因导致出块失败了呢。
有几次启动程序都会出现 Not producing block because production is disabled until we receive a recent block (see: --enable-stale-production),似乎需要反复启动几次程序才能接收其他人的出块。

运行的指令是这个(私钥用privkey代替了):
Code: [Select]
./yoyow_node --rpc-endpoint -w 209420985 -private-key '["YYW82qoU3N6dwoRHRM4y3QhGF3XQrrrcSUCnmDJJZondR7GSfaPfY","privkey"]'
你上面的错误提示有两种,一个是 because I don't have the private key ,那么是参数设错了,命令里私钥参数是 --private-key 最前面是两个横杠,不是一个

另一种错 production is disabled until we receive a recent block 有可能是系统时间不同步;如果时间已经同步了,那就要等一会,可以到 client 里面用 info 或者 get_dynamic_global_properties 命令看同步状态, head_block_num , head_block_age 和 time 这几个值,是否是最新。

如果 node 里出现 unlinkable 的问题,目前的临时解决方案是启动命令里加一个 --replay 参数
./yoyow_node --rpc-endpoint -w 209420985 --private-key '["YYW82qoU3N6dwoRHRM4y3QhGF3XQrrrcSUCnmDJJZondR7GSfaPfY","privkey"]' --replay
« Last Edit: August 21, 2017, 09:48:14 pm by yoyowd »

Offline anychto

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: YOYOW测试程序包下载地址及使用说明
« Reply #30 on: August 22, 2017, 07:43:41 am »
Code: [Select]
1149000ms th_a       witness.cpp:195               block_production_loo ] Not producing block for 209420985 because I don't have the private key for YYW82qoU3N6dwoRHRM4y3QhGF3XQrrrcSUCnmDJJZondR7GSfaPfY
1150000ms th_a       witness.cpp:195               block_production_loo ] Not producing block for 209420985 because I don't have the private key for YYW82qoU3N6dwoRHRM4y3QhGF3XQrrrcSUCnmDJJZondR7GSfaPfY
1151000ms th_a       witness.cpp:195               block_production_loo ] Not producing block for 209420985 because I don't have the private key for YYW82qoU3N6dwoRHRM4y3QhGF3XQrrrcSUCnmDJJZondR7GSfaPfY
试了几次都出现丢块,回头看记录的时候发现错误提示是这个。
不过在运行的时候已经把privkey也追加到运行参数里面了,可能是什么原因导致出块失败了呢。
有几次启动程序都会出现 Not producing block because production is disabled until we receive a recent block (see: --enable-stale-production),似乎需要反复启动几次程序才能接收其他人的出块。

运行的指令是这个(私钥用privkey代替了):
Code: [Select]
./yoyow_node --rpc-endpoint -w 209420985 -private-key '["YYW82qoU3N6dwoRHRM4y3QhGF3XQrrrcSUCnmDJJZondR7GSfaPfY","privkey"]'
你上面的错误提示有两种,一个是 because I don't have the private key ,那么是参数设错了,命令里私钥参数是 --private-key 最前面是两个横杠,不是一个

另一种错 production is disabled until we receive a recent block 有可能是系统时间不同步;如果时间已经同步了,那就要等一会,可以到 client 里面用 info 或者 get_dynamic_global_properties 命令看同步状态, head_block_num , head_block_age 和 time 这几个值,是否是最新。

如果 node 里出现 unlinkable 的问题,目前的临时解决方案是启动命令里加一个 --replay 参数
./yoyow_node --rpc-endpoint -w 209420985 --private-key '["YYW82qoU3N6dwoRHRM4y3QhGF3XQrrrcSUCnmDJJZondR7GSfaPfY","privkey"]' --replay

谢谢~出块成功了,unlinkable也没出现了。

Offline 华探长

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: YOYOW测试程序包下载地址及使用说明
« Reply #31 on: August 22, 2017, 02:20:50 pm »
yoyow_node --rpc-endpoint -w 209420725 --private-key "[\"YYW6DyRW3fh3ZJoyLi3BGiWrcb7uUjaxWXMRGfvenWc4Pey9Di1TV\",\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"]"

运行之后
908481ms th_a       witness.cpp:87                plugin_initialize    ] witness plugin:  plugin_initialize() begin
908481ms th_a       witness.cpp:98                plugin_initialize    ] Public Key: YYW6DyRW3fh3ZJoyLi3BGiWrcb7uUjaxWXMRGfvenWc4Pey9Di1TV
908481ms th_a       witness.cpp:98                plugin_initialize    ] Public Key: YYW6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV
908481ms th_a       witness.cpp:116               plugin_initialize    ] witness plugin:  plugin_initialize() end
908481ms th_a       object_database.cpp:94        open                 ] Opening object database from C:/yoyow-x64-20170818/yoyow_node_data_dir/blockchain ...
908512ms th_a       object_database.cpp:100       open                 ] Done opening object database.
908512ms th_a       db_management.cpp:128         open                 ] last_block->id(): 0001f5ded5b5a445d2873a0244c541f0c4505b30 last_block->block_num(): 128478
908528ms th_a       db_management.cpp:129         open                 ] head_block_id(): 0001f5ded5b5a445d2873a0244c541f0c4505b30 head_block_num(): 128478
908712ms th_a       application.cpp:211           reset_p2p_node       ] Adding seed node 54.224.246.177:2017
908728ms th_a       application.cpp:226           reset_p2p_node       ] Configured p2p node to listen on 0.0.0.0:38172
908728ms th_a       application.cpp:301           reset_websocket_serv ] Configured websocket rpc to listen on 127.0.0.1:8090
908728ms th_a       witness.cpp:121               plugin_startup       ] witness plugin:  plugin_startup() begin
908728ms th_a       witness.cpp:126               plugin_startup       ] Launching block production for 1 witnesses.
908746ms th_a       witness.cpp:137               plugin_startup       ] witness plugin:  plugin_startup() end
908749ms th_a       main.cpp:179                  main                 ] Started yoyow node on a chain with 128478 blocks.
908750ms th_a       main.cpp:180                  main                 ] Chain ID is 7ec6a131f0f5a6cc586b9d48277171143069c198348186b517b9d89c08f55eb4
909012ms th_a       witness.cpp:186               block_production_loo ] Not producing block because production is disabled until we receive a recent block (see: --enable-stale-production)
910012ms th_a       witness.cpp:186               block_production_loo ] Not producing block because production is disabled until we receive a recent block (see: --enable-stale-production)
911012ms th_a       witness.cpp:186               block_production_loo ] Not producing block because production is disabled until we receive a recent block (see: --enable-stale-production)

跟着弹出一个对话框
yoyow_node.exe已停止工作
出现了一个问题,导致程序停止正常工作。如果有可用的解决方案,Windows 将关闭程序并通知你。

按钮“调试”,按钮“关闭程序”

Offline anychto

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: YOYOW测试程序包下载地址及使用说明
« Reply #32 on: August 22, 2017, 03:33:54 pm »
Code: [Select]
2928481ms th_a       application.cpp:573           handle_block         ] Got block: #129615 0001fa4feda3bf61184ddf510bb0d64a9f80c1d0 time: 2017-08-22T14:48:48 latency: 481 ms from: 209413652/j
eff  irreversible: 129591 (-24)
2931557ms th_a       application.cpp:573           handle_block         ] Got block: #129616 0001fa50fb4583ab5d0cf8647c6987aeb3fef269 time: 2017-08-22T14:48:51 latency: 557 ms from: 209416038/d
umdumgal  irreversible: 129592 (-24)
2934867ms th_a       application.cpp:573           handle_block         ] Got block: #129617 0001fa513108ef8b2c064e1f84ce25337629b9c2 time: 2017-08-22T14:48:54 latency: 867 ms from: 25997/init1
  irreversible: 129593 (-24)
2940790ms th_a       application.cpp:573           handle_block         ] Got block: #129619 0001fa53be2136895b2e421d0dc19feb28105cc7 time: 2017-08-22T14:49:00 latency: 790 ms from: 209414065/a
bit  irreversible: 129594 (-25)
2940791ms th_a       fork_database.cpp:66          push_block           ] Pushing block to fork database that failed to link: 0001fa53be2136895b2e421d0dc19feb28105cc7, 129619
2940791ms th_a       fork_database.cpp:67          push_block           ] Head: 129617, 0001fa513108ef8b2c064e1f84ce25337629b9c2
2940822ms th_a       application.cpp:602           handle_block         ] Error when pushing block:
3080000 unlinkable_block_exception: unlinkable block
block does not link to known chain
    {}
    th_a  fork_database.cpp:87 _push_block

    {"new_block":{"previous":"0001fa52390a055afa6e89e0b93b51b3ab6f798e","timestamp":"2017-08-22T14:49:00","witness":209414065,"transaction_merkle_root":"0000000000000000000000000000000000000000
","witness_signature":"204e6e4147cff8a1274daf0c8cdf47341414b43fd34caa676ca764d307a2bc0778171f5491ada4fa11763c555161763fbe6101758ba454645177d7173c8af837cf","transactions":[]}}
    th_a  db_block.cpp:208 _push_block
2941125ms th_a       application.cpp:573           handle_block         ] Got block: #129618 0001fa52390a055afa6e89e0b93b51b3ab6f798e time: 2017-08-22T14:48:57 latency: 4125 ms from: 209411264/blockman  irreversible: 129594 (-24)
2943562ms th_a       application.cpp:573           handle_block         ] Got block: #129620 0001fa54694a498ab7c794dee652bdb53c15cc79 time: 2017-08-22T14:49:03 latency: 562 ms from: 209411732/kimziv  irreversible: 129594 (-26)
2946861ms th_a       application.cpp:573           handle_block         ] Got block: #129621 0001fa554363f2cd4b0cb2a0acf46a990eabc2b3 time: 2017-08-22T14:49:06 latency: 861 ms from: 25997/init1  irreversible: 129594 (-27)
2949548ms th_a       application.cpp:573           handle_block         ] Got block: #129622 0001fa563164714e90ec4d02915bf5ce32c0f3bb time: 2017-08-22T14:49:09 latency: 548 ms from: 209416038/dumdumgal  irreversible: 129594 (-28)
Killed

之前是正常接收和出块的消息。然后后面不知为何出错……启动命令里已经加上
Code: [Select]
--replay了。
另外进程被kill之后似乎见证人没有自动下线……?因此错过了十几个block generation了……

Offline yoyowd

  • Full Member
  • ***
  • Posts: 69
    • View Profile
  • BitShares: y0y0wd
Re: YOYOW测试程序包下载地址及使用说明
« Reply #33 on: August 22, 2017, 09:05:04 pm »
Code: [Select]
2928481ms th_a       application.cpp:573           handle_block         ] Got block: #129615 0001fa4feda3bf61184ddf510bb0d64a9f80c1d0 time: 2017-08-22T14:48:48 latency: 481 ms from: 209413652/j
eff  irreversible: 129591 (-24)
2931557ms th_a       application.cpp:573           handle_block         ] Got block: #129616 0001fa50fb4583ab5d0cf8647c6987aeb3fef269 time: 2017-08-22T14:48:51 latency: 557 ms from: 209416038/d
umdumgal  irreversible: 129592 (-24)
2934867ms th_a       application.cpp:573           handle_block         ] Got block: #129617 0001fa513108ef8b2c064e1f84ce25337629b9c2 time: 2017-08-22T14:48:54 latency: 867 ms from: 25997/init1
  irreversible: 129593 (-24)
2940790ms th_a       application.cpp:573           handle_block         ] Got block: #129619 0001fa53be2136895b2e421d0dc19feb28105cc7 time: 2017-08-22T14:49:00 latency: 790 ms from: 209414065/a
bit  irreversible: 129594 (-25)
2940791ms th_a       fork_database.cpp:66          push_block           ] Pushing block to fork database that failed to link: 0001fa53be2136895b2e421d0dc19feb28105cc7, 129619
2940791ms th_a       fork_database.cpp:67          push_block           ] Head: 129617, 0001fa513108ef8b2c064e1f84ce25337629b9c2
2940822ms th_a       application.cpp:602           handle_block         ] Error when pushing block:
3080000 unlinkable_block_exception: unlinkable block
block does not link to known chain
    {}
    th_a  fork_database.cpp:87 _push_block

    {"new_block":{"previous":"0001fa52390a055afa6e89e0b93b51b3ab6f798e","timestamp":"2017-08-22T14:49:00","witness":209414065,"transaction_merkle_root":"0000000000000000000000000000000000000000
","witness_signature":"204e6e4147cff8a1274daf0c8cdf47341414b43fd34caa676ca764d307a2bc0778171f5491ada4fa11763c555161763fbe6101758ba454645177d7173c8af837cf","transactions":[]}}
    th_a  db_block.cpp:208 _push_block
2941125ms th_a       application.cpp:573           handle_block         ] Got block: #129618 0001fa52390a055afa6e89e0b93b51b3ab6f798e time: 2017-08-22T14:48:57 latency: 4125 ms from: 209411264/blockman  irreversible: 129594 (-24)
2943562ms th_a       application.cpp:573           handle_block         ] Got block: #129620 0001fa54694a498ab7c794dee652bdb53c15cc79 time: 2017-08-22T14:49:03 latency: 562 ms from: 209411732/kimziv  irreversible: 129594 (-26)
2946861ms th_a       application.cpp:573           handle_block         ] Got block: #129621 0001fa554363f2cd4b0cb2a0acf46a990eabc2b3 time: 2017-08-22T14:49:06 latency: 861 ms from: 25997/init1  irreversible: 129594 (-27)
2949548ms th_a       application.cpp:573           handle_block         ] Got block: #129622 0001fa563164714e90ec4d02915bf5ce32c0f3bb time: 2017-08-22T14:49:09 latency: 548 ms from: 209416038/dumdumgal  irreversible: 129594 (-28)
Killed

之前是正常接收和出块的消息。然后后面不知为何出错……启动命令里已经加上
Code: [Select]
--replay了。
另外进程被kill之后似乎见证人没有自动下线……?因此错过了十几个block generation了……
偶尔出现 unlinkable block 属于正常情况,特别是你的节点或者他人节点网络不稳定的时候,以及重新从头开始同步的时候。
出于网络整体安全方面考虑,被动触发离线需要等比较长一段时间,现在测试网里这个参数是3小时。具体参数可以用get_global_properties命令看。

另外,kill是你主动发起的?如果不是,可能原因是内存不足。
« Last Edit: August 22, 2017, 09:07:18 pm by yoyowd »

Offline yoyowd

  • Full Member
  • ***
  • Posts: 69
    • View Profile
  • BitShares: y0y0wd
Re: YOYOW测试程序包下载地址及使用说明
« Reply #34 on: August 22, 2017, 09:09:01 pm »
yoyow_node --rpc-endpoint -w 209420725 --private-key "[\"YYW6DyRW3fh3ZJoyLi3BGiWrcb7uUjaxWXMRGfvenWc4Pey9Di1TV\",\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"]"

运行之后
908481ms th_a       witness.cpp:87                plugin_initialize    ] witness plugin:  plugin_initialize() begin
908481ms th_a       witness.cpp:98                plugin_initialize    ] Public Key: YYW6DyRW3fh3ZJoyLi3BGiWrcb7uUjaxWXMRGfvenWc4Pey9Di1TV
908481ms th_a       witness.cpp:98                plugin_initialize    ] Public Key: YYW6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV
908481ms th_a       witness.cpp:116               plugin_initialize    ] witness plugin:  plugin_initialize() end
908481ms th_a       object_database.cpp:94        open                 ] Opening object database from C:/yoyow-x64-20170818/yoyow_node_data_dir/blockchain ...
908512ms th_a       object_database.cpp:100       open                 ] Done opening object database.
908512ms th_a       db_management.cpp:128         open                 ] last_block->id(): 0001f5ded5b5a445d2873a0244c541f0c4505b30 last_block->block_num(): 128478
908528ms th_a       db_management.cpp:129         open                 ] head_block_id(): 0001f5ded5b5a445d2873a0244c541f0c4505b30 head_block_num(): 128478
908712ms th_a       application.cpp:211           reset_p2p_node       ] Adding seed node 54.224.246.177:2017
908728ms th_a       application.cpp:226           reset_p2p_node       ] Configured p2p node to listen on 0.0.0.0:38172
908728ms th_a       application.cpp:301           reset_websocket_serv ] Configured websocket rpc to listen on 127.0.0.1:8090
908728ms th_a       witness.cpp:121               plugin_startup       ] witness plugin:  plugin_startup() begin
908728ms th_a       witness.cpp:126               plugin_startup       ] Launching block production for 1 witnesses.
908746ms th_a       witness.cpp:137               plugin_startup       ] witness plugin:  plugin_startup() end
908749ms th_a       main.cpp:179                  main                 ] Started yoyow node on a chain with 128478 blocks.
908750ms th_a       main.cpp:180                  main                 ] Chain ID is 7ec6a131f0f5a6cc586b9d48277171143069c198348186b517b9d89c08f55eb4
909012ms th_a       witness.cpp:186               block_production_loo ] Not producing block because production is disabled until we receive a recent block (see: --enable-stale-production)
910012ms th_a       witness.cpp:186               block_production_loo ] Not producing block because production is disabled until we receive a recent block (see: --enable-stale-production)
911012ms th_a       witness.cpp:186               block_production_loo ] Not producing block because production is disabled until we receive a recent block (see: --enable-stale-production)

跟着弹出一个对话框
yoyow_node.exe已停止工作
出现了一个问题,导致程序停止正常工作。如果有可用的解决方案,Windows 将关闭程序并通知你。

按钮“调试”,按钮“关闭程序”
可以尝试带--replay参数启动
yoyow_node --rpc-endpoint -w 209420725 --private-key "[\"YYW6DyRW3fh3ZJoyLi3BGiWrcb7uUjaxWXMRGfvenWc4Pey9Di1TV\",\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"]" --replay

Offline ben2018

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: YOYOW测试程序包下载地址及使用说明
« Reply #35 on: August 23, 2017, 09:08:07 am »
申请注册 公钥: YYW6H1kHPAdQ7T4ig4ngWU9PoQoBo4q1caeyAzGLoFJMd3NB49vdW
用户名:  ben2018
谢谢。

Offline yoyowd

  • Full Member
  • ***
  • Posts: 69
    • View Profile
  • BitShares: y0y0wd
Re: YOYOW测试程序包下载地址及使用说明
« Reply #36 on: August 23, 2017, 10:00:35 am »
申请注册 公钥: YYW6H1kHPAdQ7T4ig4ngWU9PoQoBo4q1caeyAzGLoFJMd3NB49vdW
用户名:  ben2018
谢谢。
好了

Offline ben2018

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: YOYOW测试程序包下载地址及使用说明
« Reply #37 on: August 23, 2017, 10:07:44 am »
申请注册 公钥: YYW6H1kHPAdQ7T4ig4ngWU9PoQoBo4q1caeyAzGLoFJMd3NB49vdW
用户名:  ben2018
谢谢。
好了

谢谢 +5%

Offline 华探长

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: YOYOW测试程序包下载地址及使用说明
« Reply #38 on: August 23, 2017, 10:23:26 am »
加了--replay,反复启动了好几次,静止在这里
yoyow_node --rpc-endpoint -w 209420725 --private-key "[\"YYW6DyRW3fh3ZJoyLi3BGiWrcb7uUjaxWXMRGfvenWc4Pey9Di1TV\",\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"]" --replay
741357ms th_a       witness.cpp:87                plugin_initialize    ] witness plugin:  plugin_initialize() begin
741357ms th_a       witness.cpp:98                plugin_initialize    ] Public Key: YYW6DyRW3fh3ZJoyLi3BGiWrcb7uUjaxWXMRGfvenWc4Pey9Di1TV
741365ms th_a       witness.cpp:98                plugin_initialize    ] Public Key: YYW6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV
741376ms th_a       witness.cpp:116               plugin_initialize    ] witness plugin:  plugin_initialize() end
741386ms th_a       application.cpp:414           startup              ] Replaying blockchain on user request.
741389ms th_a       application.cpp:352           operator ()          ] Initializing database...
741402ms th_a       db_management.cpp:51          reindex              ] reindexing blockchain
741402ms th_a       db_management.cpp:104         wipe                 ] Wiping database
741406ms th_a       db_management.cpp:170         close                ] Database close unexpected exception: {"code":10,"name":"assert_exception","message":"Assert Exception","stack":[{"context":{"level":"error","file":"index.hpp","line":111,"method":"graphene::db::index::get","hostname":"","thread_name":"th_a","timestamp":"2017-08-23T10:12:21"},"format":"maybe_found != nullptr: Unable to find Object","data":{"id":"2.1.0"}}]}
741550ms th_a       object_database.cpp:87        wipe                 ] Wiping object database...
742188ms th_a       object_database.cpp:89        wipe                 ] Done wiping object databse.
742188ms th_a       object_database.cpp:94        open                 ] Opening object database from C:/yoyow-x64-20170818/yoyow_node_data_dir/blockchain ...
742196ms th_a       object_database.cpp:100       open                 ] Done opening object database.
742203ms th_a       db_update.cpp:773             adjust_budgets       ] budgets adjusted on block 0, next scheduled adjust block is 14400
742208ms th_a       db_update.cpp:749             update_committee     ] committee updated on block 0, next scheduled update block is 4800
742217ms th_a       db_management.cpp:128         open                 ] last_block->id(): 0002518d12ea86c234b562eaffcd182e3d26bcf5 last_block->block_num(): 151949
742223ms th_a       db_management.cpp:129         open                 ] head_block_id(): 0000000000000000000000000000000000000000 head_block_num(): 0
742232ms th_a       db_management.cpp:65          reindex              ] Replaying blocks...
742345ms th_a       db_update.cpp:749             update_committee     ] committee updated on block 4800, next scheduled update block is 9600
   3.29058%   5000 of 151949
742467ms th_a       db_update.cpp:749             update_committee     ] committee updated on block 9600, next scheduled update block is 14400
   6.58116%   10000 of 151949
742624ms th_a       db_update.cpp:749             update_committee     ] committee updated on block 14400, next scheduled update block is 19200
742629ms th_a       db_update.cpp:773             adjust_budgets       ] budgets adjusted on block 14400, next scheduled adjust block is 28800
   9.87173%   15000 of 151949
742824ms th_a       db_update.cpp:749             update_committee     ] committee updated on block 19200, next scheduled update block is 24000
   13.1623%   20000 of 151949
743043ms th_a       db_update.cpp:749             update_committee     ] committee updated on block 24000, next scheduled update block is 28800
   16.4529%   25000 of 151949
743258ms th_a       db_update.cpp:749             update_committee     ] committee updated on block 28800, next scheduled update block is 33600
743263ms th_a       db_update.cpp:773             adjust_budgets       ] budgets adjusted on block 28800, next scheduled adjust block is 43200
   19.7435%   30000 of 151949
743485ms th_a       db_update.cpp:749             update_committee     ] committee updated on block 33600, next scheduled update block is 38400
   23.034%   35000 of 151949
743704ms th_a       db_update.cpp:749             update_committee     ] committee updated on block 38400, next scheduled update block is 43200
   26.3246%   40000 of 151949
743924ms th_a       db_update.cpp:749             update_committee     ] committee updated on block 43200, next scheduled update block is 48000
743929ms th_a       db_update.cpp:773             adjust_budgets       ] budgets adjusted on block 43200, next scheduled adjust block is 57600
   29.6152%   45000 of 151949
744154ms th_a       db_update.cpp:749             update_committee     ] committee updated on block 48000, next scheduled update block is 52800
   32.9058%   50000 of 151949
744376ms th_a       db_update.cpp:749             update_committee     ] committee updated on block 52800, next scheduled update block is 57600
   36.1964%   55000 of 151949
744594ms th_a       db_update.cpp:749             update_committee     ] committee updated on block 57600, next scheduled update block is 62400
744600ms th_a       db_update.cpp:773             adjust_budgets       ] budgets adjusted on block 57600, next scheduled adjust block is 72000
   39.4869%   60000 of 151949
744825ms th_a       db_update.cpp:749             update_committee     ] committee updated on block 62400, next scheduled update block is 67200
   42.7775%   65000 of 151949
745049ms th_a       db_update.cpp:749             update_committee     ] committee updated on block 67200, next scheduled update block is 72000
   46.0681%   70000 of 151949
745272ms th_a       db_update.cpp:749             update_committee     ] committee updated on block 72000, next scheduled update block is 76800
745277ms th_a       db_update.cpp:773             adjust_budgets       ] budgets adjusted on block 72000, next scheduled adjust block is 86400
   49.3587%   75000 of 151949
745516ms th_a       db_update.cpp:749             update_committee     ] committee updated on block 76800, next scheduled update block is 81600
   52.6492%   80000 of 151949
745746ms th_a       db_update.cpp:749             update_committee     ] committee updated on block 81600, next scheduled update block is 86400
   55.9398%   85000 of 151949
745977ms th_a       db_update.cpp:749             update_committee     ] committee updated on block 86400, next scheduled update block is 91200
745983ms th_a       db_update.cpp:773             adjust_budgets       ] budgets adjusted on block 86400, next scheduled adjust block is 100800
   59.2304%   90000 of 151949
746221ms th_a       db_update.cpp:749             update_committee     ] committee updated on block 91200, next scheduled update block is 96000
   62.521%   95000 of 151949
746469ms th_a       db_update.cpp:749             update_committee     ] committee updated on block 96000, next scheduled update block is 100800
   65.8116%   100000 of 151949
746727ms th_a       db_update.cpp:749             update_committee     ] committee updated on block 100800, next scheduled update block is 105600
746731ms th_a       db_update.cpp:773             adjust_budgets       ] budgets adjusted on block 100800, next scheduled adjust block is 115200
   69.1021%   105000 of 151949
746997ms th_a       db_update.cpp:749             update_committee     ] committee updated on block 105600, next scheduled update block is 110400
   72.3927%   110000 of 151949
747263ms th_a       db_update.cpp:749             update_committee     ] committee updated on block 110400, next scheduled update block is 115200
   75.6833%   115000 of 151949
747534ms th_a       db_update.cpp:749             update_committee     ] committee updated on block 115200, next scheduled update block is 120000
747534ms th_a       db_update.cpp:773             adjust_budgets       ] budgets adjusted on block 115200, next scheduled adjust block is 129600
   78.9739%   120000 of 151949
747808ms th_a       db_update.cpp:749             update_committee     ] committee updated on block 120000, next scheduled update block is 124800
748084ms th_a       db_update.cpp:749             update_committee     ] committee updated on block 124800, next scheduled update block is 129600
   82.2644%   125000 of 151949
748372ms th_a       db_update.cpp:749             update_committee     ] committee updated on block 129600, next scheduled update block is 134400
748377ms th_a       db_update.cpp:773             adjust_budgets       ] budgets adjusted on block 129600, next scheduled adjust block is 144000
   85.555%   130000 of 151949
748689ms th_a       db_update.cpp:749             update_committee     ] committee updated on block 134400, next scheduled update block is 139200
   88.8456%   135000 of 151949
749010ms th_a       db_update.cpp:749             update_committee     ] committee updated on block 139200, next scheduled update block is 144000
   92.1362%   140000 of 151949
749338ms th_a       db_update.cpp:749             update_committee     ] committee updated on block 144000, next scheduled update block is 148800
749342ms th_a       db_update.cpp:773             adjust_budgets       ] budgets adjusted on block 144000, next scheduled adjust block is 158400
   95.4268%   145000 of 151949
749709ms th_a       db_update.cpp:749             update_committee     ] committee updated on block 148800, next scheduled update block is 153600
   98.7173%   150000 of 151949
749908ms th_a       db_management.cpp:99          reindex              ] Done reindexing, elapsed time: 7.67632699999999968 sec
750154ms th_a       application.cpp:211           reset_p2p_node       ] Adding seed node 54.224.246.177:2017
750160ms th_a       application.cpp:226           reset_p2p_node       ] Configured p2p node to listen on 0.0.0.0:19223
750161ms th_a       application.cpp:301           reset_websocket_serv ] Configured websocket rpc to listen on 127.0.0.1:8090
750162ms th_a       witness.cpp:121               plugin_startup       ] witness plugin:  plugin_startup() begin
750163ms th_a       witness.cpp:126               plugin_startup       ] Launching block production for 1 witnesses.
750164ms th_a       witness.cpp:137               plugin_startup       ] witness plugin:  plugin_startup() end
750165ms th_a       main.cpp:179                  main                 ] Started yoyow node on a chain with 151949 blocks.
750165ms th_a       main.cpp:180                  main                 ] Chain ID is 7ec6a131f0f5a6cc586b9d48277171143069c198348186b517b9d89c08f55eb4
751000ms th_a       witness.cpp:186               block_production_loo ] Not producing block because production is disabled until we receive a recent block (see: --enable-stale-production)
752000ms th_a       witness.cpp:186               block_production_loo ] Not producing block because production is disabled until we receive a recent block (see: --enable-stale-production)
753052ms th_a       witness.cpp:186               block_production_loo ] Not producing block because production is disabled until we receive a recent block (see: --enable-stale-production)

Offline anychto

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: YOYOW测试程序包下载地址及使用说明
« Reply #39 on: August 23, 2017, 10:48:21 am »
Code: [Select]
2928481ms th_a       application.cpp:573           handle_block         ] Got block: #129615 0001fa4feda3bf61184ddf510bb0d64a9f80c1d0 time: 2017-08-22T14:48:48 latency: 481 ms from: 209413652/j
eff  irreversible: 129591 (-24)
2931557ms th_a       application.cpp:573           handle_block         ] Got block: #129616 0001fa50fb4583ab5d0cf8647c6987aeb3fef269 time: 2017-08-22T14:48:51 latency: 557 ms from: 209416038/d
umdumgal  irreversible: 129592 (-24)
2934867ms th_a       application.cpp:573           handle_block         ] Got block: #129617 0001fa513108ef8b2c064e1f84ce25337629b9c2 time: 2017-08-22T14:48:54 latency: 867 ms from: 25997/init1
  irreversible: 129593 (-24)
2940790ms th_a       application.cpp:573           handle_block         ] Got block: #129619 0001fa53be2136895b2e421d0dc19feb28105cc7 time: 2017-08-22T14:49:00 latency: 790 ms from: 209414065/a
bit  irreversible: 129594 (-25)
2940791ms th_a       fork_database.cpp:66          push_block           ] Pushing block to fork database that failed to link: 0001fa53be2136895b2e421d0dc19feb28105cc7, 129619
2940791ms th_a       fork_database.cpp:67          push_block           ] Head: 129617, 0001fa513108ef8b2c064e1f84ce25337629b9c2
2940822ms th_a       application.cpp:602           handle_block         ] Error when pushing block:
3080000 unlinkable_block_exception: unlinkable block
block does not link to known chain
    {}
    th_a  fork_database.cpp:87 _push_block

    {"new_block":{"previous":"0001fa52390a055afa6e89e0b93b51b3ab6f798e","timestamp":"2017-08-22T14:49:00","witness":209414065,"transaction_merkle_root":"0000000000000000000000000000000000000000
","witness_signature":"204e6e4147cff8a1274daf0c8cdf47341414b43fd34caa676ca764d307a2bc0778171f5491ada4fa11763c555161763fbe6101758ba454645177d7173c8af837cf","transactions":[]}}
    th_a  db_block.cpp:208 _push_block
2941125ms th_a       application.cpp:573           handle_block         ] Got block: #129618 0001fa52390a055afa6e89e0b93b51b3ab6f798e time: 2017-08-22T14:48:57 latency: 4125 ms from: 209411264/blockman  irreversible: 129594 (-24)
2943562ms th_a       application.cpp:573           handle_block         ] Got block: #129620 0001fa54694a498ab7c794dee652bdb53c15cc79 time: 2017-08-22T14:49:03 latency: 562 ms from: 209411732/kimziv  irreversible: 129594 (-26)
2946861ms th_a       application.cpp:573           handle_block         ] Got block: #129621 0001fa554363f2cd4b0cb2a0acf46a990eabc2b3 time: 2017-08-22T14:49:06 latency: 861 ms from: 25997/init1  irreversible: 129594 (-27)
2949548ms th_a       application.cpp:573           handle_block         ] Got block: #129622 0001fa563164714e90ec4d02915bf5ce32c0f3bb time: 2017-08-22T14:49:09 latency: 548 ms from: 209416038/dumdumgal  irreversible: 129594 (-28)
Killed

之前是正常接收和出块的消息。然后后面不知为何出错……启动命令里已经加上
Code: [Select]
--replay了。
另外进程被kill之后似乎见证人没有自动下线……?因此错过了十几个block generation了……
偶尔出现 unlinkable block 属于正常情况,特别是你的节点或者他人节点网络不稳定的时候,以及重新从头开始同步的时候。
出于网络整体安全方面考虑,被动触发离线需要等比较长一段时间,现在测试网里这个参数是3小时。具体参数可以用get_global_properties命令看。

另外,kill是你主动发起的?如果不是,可能原因是内存不足。

既然是正常情况看来不用担心了……kill我不确定是自己screen误操作还是系统自动终止了。0.75G的内存配置似乎有点小了。跑节点后期占用内存会越来越大么。

对了,有什么办法可以把node运行的输出打印到文件里方便之后查看并寻找问题么。

Offline yoyowd

  • Full Member
  • ***
  • Posts: 69
    • View Profile
  • BitShares: y0y0wd
Re: YOYOW测试程序包下载地址及使用说明
« Reply #40 on: August 23, 2017, 12:41:58 pm »
加了--replay,反复启动了好几次,静止在这里
yoyow_node --rpc-endpoint -w 209420725 --private-key "
检查系统时间,精确到秒。

Offline yoyowd

  • Full Member
  • ***
  • Posts: 69
    • View Profile
  • BitShares: y0y0wd
Re: YOYOW测试程序包下载地址及使用说明
« Reply #41 on: August 23, 2017, 12:43:49 pm »
既然是正常情况看来不用担心了……kill我不确定是自己screen误操作还是系统自动终止了。0.75G的内存配置似乎有点小了。跑节点后期占用内存会越来越大么。

对了,有什么办法可以把node运行的输出打印到文件里方便之后查看并寻找问题么。
内存确实会越用越多。
node输出有日志文件,在 yoyow_node_data_dir/logs/default 里面,目前只保存最近24小时日志。

Offline dirnet

  • Full Member
  • ***
  • Posts: 53
    • View Profile
Re: YOYOW测试程序包下载地址及使用说明
« Reply #42 on: August 23, 2017, 05:18:17 pm »
加了--replay,反复启动了好几次,静止在这里

时钟同步的问题,我也遇到过,系统默认的NTP同步不了,现在用的阿里云的NTP
Unix 类: time1-7.aliyun.com
Windows: time.pool.aliyun.com
« Last Edit: August 23, 2017, 05:23:06 pm by dirnet »

Offline lianzhengyun

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: YOYOW测试程序包下载地址及使用说明
« Reply #43 on: August 24, 2017, 02:27:48 am »
申请注册 公钥: YYW85BkD4yoFcUxzUsfGm88nwwsBhNcD19eFoySgdJrEZiVgqAqGo
用户名:  sinrch

Offline wongshiying

Re: YOYOW测试程序包下载地址及使用说明
« Reply #44 on: September 05, 2017, 08:20:40 am »
Quote
get_account wongshiying
10 assert_exception: Assert Exception
rec && rec->name == account_name_or_id: Can not find account wongshiying.
    {"a":"wongshiying"}
    th_a  wallet.cpp:618 graphene::wallet::detail::wallet_api_impl::get_account

账号已创建。。我少了什么步骤吗?

Offline yoyowd

  • Full Member
  • ***
  • Posts: 69
    • View Profile
  • BitShares: y0y0wd
Re: YOYOW测试程序包下载地址及使用说明
« Reply #45 on: September 05, 2017, 08:58:55 am »
Quote
get_account wongshiying
10 assert_exception: Assert Exception
rec && rec->name == account_name_or_id: Can not find account wongshiying.
    {"a":"wongshiying"}
    th_a  wallet.cpp:618 graphene::wallet::detail::wallet_api_impl::get_account

账号已创建。。我少了什么步骤吗?
是我弄错了。麻烦重试一下

Offline wongshiying

Re: YOYOW测试程序包下载地址及使用说明
« Reply #46 on: September 05, 2017, 09:51:36 am »
Quote
get_account wongshiying
10 assert_exception: Assert Exception
rec && rec->name == account_name_or_id: Can not find account wongshiying.
    {"a":"wongshiying"}
    th_a  wallet.cpp:618 graphene::wallet::detail::wallet_api_impl::get_account

账号已创建。。我少了什么步骤吗?
是我弄错了。麻烦重试一下

有了。。。谢谢你

Offline zhongyi

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: YOYOW测试程序包下载地址及使用说明
« Reply #47 on: September 05, 2017, 01:30:57 pm »
申请注册 公钥: YYW6f8xynDYzc1cTSaBZKYKaH7bDxEhnpy1ZmBDejGZmo6GhHcPaE
用户名:  wzyfx

Offline yoyowd

  • Full Member
  • ***
  • Posts: 69
    • View Profile
  • BitShares: y0y0wd
Re: YOYOW测试程序包下载地址及使用说明
« Reply #48 on: September 05, 2017, 06:00:32 pm »
申请注册 公钥: YYW6f8xynDYzc1cTSaBZKYKaH7bDxEhnpy1ZmBDejGZmo6GhHcPaE
用户名:  wzyfx
账号建好了

Offline szlglee

  • Newbie
  • *
  • Posts: 1
    • View Profile
  • BitShares: dafxs
Re: YOYOW测试程序包下载地址及使用说明
« Reply #49 on: September 08, 2017, 09:57:44 am »
账号申请
公钥:YYW5xp2jaeZXs9jd7W4ywhXUrZzzmQk39DpSuLPSryGT8qv3icQuz
名字:lees

Offline superlone

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: YOYOW测试程序包下载地址及使用说明
« Reply #50 on: September 09, 2017, 04:58:47 pm »
帐号申请
账号公钥:YYW6V2DXCP3WUhqhT4eMPtBYH2NBjd8jRik1UM2hPZXJw3YLfPcA4
用户名用:lone
谢谢


Offline qqq5817827

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: YOYOW测试程序包下载地址及使用说明
« Reply #51 on: September 10, 2017, 12:10:36 pm »
运行钱包时出现该问题
root[member=42816]yoyow[/member]:/home/yoyow20170906# ./yoyow_client
Logging RPC to file: logs/rpc/rpc.log
347366ms th_a       main.cpp:120                  main                 ] key_to_wif( committee_private_key ): 5KCBDTcyDqzsqehcb52tW5nU6pXife6V2rX9Yf7c3saYSzbDZ5W
347368ms th_a       main.cpp:124                  main                 ] nathan_pub_key: YYW6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV
347368ms th_a       main.cpp:125                  main                 ] key_to_wif( nathan_private_key ): 5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3
Starting a new wallet with chain ID ae4f234c75199f67e526c9478cf499dd6e94c2b66830ee5c58d0868a3179baf6 (from egenesis)
347370ms th_a       main.cpp:172                  main                 ] wdata.ws_server: ws://localhost:8090
0 exception: unspecified
Timer Expired
    {"message":"Timer Expired"}
    asio  websocket.cpp:449 operator()

    {"uri":"ws://localhost:8090"}
    th_a  websocket.cpp:678 connect
root[member=42816]yoyow[/member]:/home/yoyow20170906#

我在github上找到有类似的问题https://github.com/zaphoyd/websocketpp/tree/0bb33e4bca4ccc42a36aa2321e4fb97f2562e519
上面是说是因为内核大于4.4引起的问题
After a change in Linux Kernel 4.4 the value of 0 causes all
connections to be rejected rather than the default value being used.
The default is now the asio::socket_base::max_connections value instead
(which is the default asio uses when no value is provided).
Documentation has been updated accordingly.
请问如何改善

Offline shinerad

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: YOYOW测试程序包下载地址及使用说明
« Reply #52 on: September 14, 2017, 08:21:46 am »
申请注册账号
公钥:YYW5N6vJjDynaNNg3ekndA8GL9qZGS7RbMq777D6Wx8gU7uxq7H8U
名字用 shinerad

thx!