QOSGroup/qos

创建验证人:create-validator 帮助显示和命令执行时候使用的参数名称不一致

Closed this issue · 0 comments

统一使用owner修改方便,只需修改帮助信息

//帮助提示使用creator,参数列表使用的是owner
[vagrant@vagrant-192-168-1-201 ~]$ qoscli tx create-validator -h

owner is a keystore name or account address.

example:

	 qoscli tx create-validator --moniker validatorName --creator ownerName --tokens 100

##执行时候使用owner
[vagrant@vagrant-192-168-1-201 ~]$ qoscli tx create-validator
ERROR: required flag(s) "moniker", "owner", "tokens" not set

##查询验证人,验证人信息展示使用的是owner
[vagrant@vagrant-192-168-1-201 ~]$ qoscli query validators --indent
[
  {
    "validator": "qosval1pk447qs9jz76wfrqc68sprqnu6mtkak77j8k2n",
    "owner": "qosacc1pk447qs9jz76wfrqc68sprqnu6mtkak7xzf4v7",
    "consensusAddress": "qoscons1dnhqs3qstmknah9u5ml888kf2jc8wd99weuqp9",
    "consensusPubKey": "qosconspub1zcjduepq9c6l2zj5e3rel5yrpeyl2yjudhp87v3y8a2kjctyzp8uc0hqsdlslnyppu",
    "bondTokens": "4000000000000",
    "description": {
      "moniker": "firstvalidator",
      "logo": "",
      "website": "",
      "details": ""
    },
    "commission": {
      "commission_rates": {
        "rate": "0.100000000000000000",
        "max_rate": "0.200000000000000000",
        "max_change_rate": "0.010000000000000000"
      },
      "update_time": "0001-01-01T00:00:00Z"
    },
    "status": "active",
    "InactiveDesc": "",
    "inactiveTime": "0001-01-01T00:00:00Z",
    "inactiveHeight": "0",
    "minPeriod": "0",
    "bondHeight": "0"
  }
]