CMC工具在国密算法启动环境的链中执行报错check user cert on chain failed
【问题分类】
- 长安链CMC工具
【问题描述】
在使用国密算法启动链后,使用CMC工具进行其他操作时报错。 比如执行区块信息查询:
[root@node cmc]# ./cmc query block-by-height 1 --chain-id=chain1 --sdk-conf-path=./testdata/sdk_config.yml Error: check user cert on chain failed, check user upload cert on chain failed, try again later, user cert havenot on chain yet, and try again Usage: cmc query block-by-height [height] [flags]
Flags: --chain-id string Chain ID --enable-cert-hash whether enable cert hash (default true) -h, --help help for block-by-height --sdk-conf-path string specify sdk config path
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information