【问题标题】:Errors while creating pool using indy-cli使用 indy-cli 创建池时出错
【发布时间】:2021-01-24 07:16:19
【问题描述】:
我已经运行了 indy_pool 网络,它使用以下命令启动:docker run -itd -p 9701-9708:9701-9708 indy_pool
现在,我已经在我的系统中安装了 indy-cli
现在,当我尝试使用以下命令创建池时:
pool create local_pool gen_text_file=//indy-sdk/cli/docker_pool_transactions_genesis
它给了我错误:
存在未知的“gen_text_file”参数
有人能解释一下为什么会出现这个问题以及可以做些什么来解决这个问题吗?
【问题讨论】:
标签:
blockchain
hyperledger
hyperledger-indy
decentralized-identity
indy-node
【解决方案1】:
您必须在“/”变量中提供正确的路径,以便它可以定位“docker_pool_transactions_genesis”文件。
要知道 indy-sdk 的路径,请转到您提供“docker run -itd -p 9701-9708:9701-9708 indy_pool”命令的文件夹并运行“echo $PWD”命令。
假设我将 indy-sdk 克隆到我的 Ubuntu 主页,所以我的 gen_text_file 路径是“/home/indy-sdk/cli/docker_pool_transactions_genesis”
【解决方案2】:
在indy-cli 1.14.1及以后的版本中,你需要的参数其实是gen_txn_file=
这是“帮助”的副本:
> pool create help
Command:
pool create - Create new pool ledger config with specified name
Usage:
pool create <name-value> gen_txn_file=<gen_txn_file-value>
Parameters are:
name - The name of new pool ledger config
gen_txn_file - Path to file with genesis transactions
Examples:
pool create pool1 gen_txn_file=/home/pool_genesis_transactions