BitShares Forum

Main => 中文 (Chinese) => 新手入门 => Topic started by: ebit on December 02, 2015, 11:44:24 am

Title: 创建比特股理事及参与投票
Post by: ebit on December 02, 2015, 11:44:24 am
Linux 系统
下载重钱包
到其bin目录下
添加新文件start_witness.bat
Code: [Select]
cd "%~dp0
witness_node -s 104.200.28.117:61705 --rpc-endpoint 127.0.0.1:8090
添加新文件start_cli.bat
Code: [Select]
cd "%~dp0
cli_wallet -s ws://127.0.0.1:8090 -H 127.0.0.1:8091

用管理员模式先运行start_witness.bat
再运行start_cli.bat

在start_cli窗口里:
new >>> set_password  1223333ffgg
locked >>> unlock 1223333ffgg
导入账号私钥
unlocked >>>import_key "ebit" 51111111111111111111111
unlocked >>> list_my_accounts
unlocked >>> list_account_balances ebit
创建委员会
create_committee_member ebit "ebitrose.com" true

如果你导入的账户以前还没在2.0下用过,则需要更新,并升级到终生会员。参考:
https://github.com/cryptonomex/graphene/wiki/CLI-Wallet-Cookbook

投票参考资料:
http://docs.bitshares.eu/bitshares/tutorials/propose-transaction.html#approving-a-proposal
https://bitsharestalk.org/index.php/topic,21237.msg276251.html#msg276251
投票案例:
approve_proposal ebit "1.10.286" {"active_approvals_to_add": ["ebit"]} true

错误案例(1):
闪退
原因:未索引完

错误案例(2):
7 bad_cast_exception: Bad Cast
Invalid cast from type 'null_type' to Object
    {"type":"null_type"}
    th_a  variant.cpp:575 fc::variant::get_object
原因:未同步,或者版本陈旧。
参考:https://bitsharestalk.org/index.php/topic,22177.msg289163.html#msg289163
Title: Re: 创建比特股委员
Post by: ebit on December 08, 2015, 04:05:33 am
BTS2.0教程:2.0轻钱包白板的解决办法--”重钱包“使用办法。 (http://www.btsabc.org/html/edu2/201510/00000211.html)