简体   繁体   中英

Network discovery Hyperledger fabric

I want to do a network discovery from sdk java , in order to get the list of existant peers and orderers from the network ... i saw this command that gives a list of peers :

discover --peerTLSCA tls/ca.crt --userKey msp/keystore/fa65ea6028ce47de4163fb37b5f21529f657d978cd669337248dbfe00a7f74ee_sk --userCert msp/signcerts/Admin@org1.example.com-cert.pem --MSP Org1MSP --tlsCert tls/client.crt --tlsKey tls/client.key peers --server peer0.org1.example.com:7051

how can i replace that in java and also get the orderers list ... thank you

如果您使用fabric-gateway-java ,则在引擎盖下使用发现,具体取决于您的连接选项

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM