Author Topic: 创建比特股理事及参与投票  (Read 2086 times)

0 Members and 1 Guest are viewing this topic.

Offline ebit

  • Committee member
  • Hero Member
  • *
  • Posts: 1727
    • View Profile
    • 推荐链接
  • BitShares: 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
« Last Edit: July 23, 2017, 10:27:35 pm by ebit »

Offline ebit

  • Committee member
  • Hero Member
  • *
  • Posts: 1727
    • View Profile
    • 推荐链接
  • BitShares: ebit