问题描述
我已经运行了indy_pool网络,并使用以下命令启动了它:docker run -itd -p 9701-9708:9701-9708 indy_pool
现在,我已经在系统中安装了indy-cli
现在,当我尝试使用以下命令创建池时:
池创建local_pool gen_text_file = /
它给了我错误: 存在未知的“ gen_text_file”参数
有人可以解释为什么会出现此问题,并且可以解决此问题吗?
解决方法
您必须在“ /
要了解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”
,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