fabric discover用法
$ cat <<!EOF > discover.yaml
version: 0
tlsconfig:
certpath: ""
keypath: ""
peercacertpath: /path/to/msp/tlscacerts/tls-ca.pem
timeout: 0s
signerconfig:
mspid: <MSPID>
identitypath: /path/to/msp/signcerts/cert.pem
keypath: /path/to/msp/keystore/key.pem
!EOF
$ discover --configFile discover.yaml peers --server <PEERADDR>:7051 --channel <CHANNEL>
$ discover --configFile discover.yaml config --server <PEERADDR>:7051 --channel <CHANNEL>
$ discover --configFile discover.yaml endorsers --server <PEERADDR>:7051 --channel <CHANNEL> --chaincode <CHAINCODE>
也可以直接使用命令行:
$ discover endorsers \
--peerTLSCA /path/to/msp/tlscacerts/tls-ca.pem \
--userKey /path/to/msp/keystore/key.pem \
--userCert /path/to/msp/signcerts/cert.pem \
--server <PEERADDR>:7051 \
--MSP <MSPID> \
--channel <CHANNEL> \
--chaincode <CHAINCODE>
网友评论