BigchainDB命令行

bigchaindb --help

帮助信息,可以是bigchaindb -h

bigchaindb --version

查看版本,可以是bigchaindb -v

bigchaindb configure

获取配置文件,后端数据库类型只支持localmongodb-c选项可指定配置文件路径。默认文件路径为$HOME/.bigchaindb-y选项所有参数将使用默认值。

bigchaindb -c path/to/new_config.json configure localmongodb

bigchaindb show-config

显示配置值

bigchaindb init

初始化,创建初始表、索引等。

bigchaindb drop

删除数据库。

bigchaindb start

启动BigchainDB,如果没有初始化会先执行bigchaindb init,可以用命令bigchaindb start --no-init跳过。用--log-level-l指定日志的级别。

$ bigchaindb --log-level INFO start

bigchaindb election

管理选举以管理BigchainDB网络。选举过程的细节在BEP-18中定义。选举管理分为几个子命令。下面是每个命令行的语法。

$ bigchaindb election new upsert-validator <public-key> <power> <node-id> --private-key <path-to-the-private-key>
$ bigchaindb election new upsert-validator HHG0IQRybpT6nJMIWWFWhMczCLHt6xcm7eP52GnGuPY= 1 fb7140f03a4ffad899fabbbf655b97e0321add66 --private-key /home/user/.tendermint/config/priv_validator.json
[SUCCESS] Submitted proposal with id: 04a067582cf03eba2b53b82e4adb5ece424474cbd4f7183780855a93ac5e3caa
$ bigchaindb election new chain-migration --private-key <path-to-the-private-key>
$ bigchaindb election new migration --private-key /home/user/.tendermint/config/priv_validator.json
[SUCCESS] Submitted proposal with id: 04a067582cf03eba2b53b82e4adb5ece424474cbd4f7183780855a93ac5e3caa
$ bigchaindb election approve <election-id> --private-key <path-to-the-private-key>
$ bigchaindb election approve 04a067582cf03eba2b53b82e4adb5ece424474cbd4f7183780855a93ac5e3caa --private-key /home/user/.tendermint/config/priv_validator.json
[SUCCESS] Your vote has been submitted
$ bigchaindb election show <election-id>

status=<status>

bigchaindb tendermint-version

$ bigchaindb tendermint-version
{
    "description": "BigchainDB supports the following Tendermint version(s)",
    "tendermint": [
        "0.22.8"
    ]
}
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值