我正在尝试为我的结构网络设置Hyperledger Explorer。 我有3个组织,每个组织都有一个同伴。
网络配置:-
Organizations:
- &StancOrg
Name: StancOrgMSP
ID: StancOrgMSP
MSPDir: crypto-config/peerOrganizations/peerStanc.com/msp
AnchorPeers:
- Host: HOSTA.peerStanc.com
Port: 7051
- &StancOrgA
Name: StancOrgAMSP
ID: StancOrgAMSP
MSPDir: crypto-config/peerOrganizations/peerStancA.com/msp
AnchorPeers:
- Host: HOSTA.peerStancA.com
Port: 7051
- &StancOrgB
Name: StancOrgBMSP
ID: StancOrgBMSP
MSPDir: crypto-config/peerOrganizations/peerStancB.com/msp
AnchorPeers:
- Host: HOSTA.peerStancB.com
Port: 7051
- &OrdererOrg
Name: StancOrderer
ID: StancOrdererMSP
MSPDir: crypto-config/ordererOrganizations/StancOrdr.com/msp
基于此,我已经更新了资源管理器配置文件。
{
"network-configs": {
"network-1": {
"version": "1.0",
"clients": {
"client-1": {
"tlsEnable": false,
"organization": "StancOrgMSP",
"channel": "masterchannel",
"credentialStore": {
"path": "./tmp/credentialStore_Org1/credential",
"cryptoStore": {
"path": "./tmp/credentialStore_Org1/crypto"
}
}
}
},
"channels": {
"masterchannel": {
"peers": {
"HOSTA.peerStancA.com": {},
"HOSTA.peerStanc.com": {},
"HOSTA.peerStancB.com": {}
},
"connection": {
"timeout": {
"peer": {
"endorser": "6000",
"eventHub": "6000",
"eventReg": "6000"
}
}
}
}
},
"organizations": {
"StancOrgMSP": {
"mspid": "StancOrgMSP",
"fullpath": false,
"adminPrivateKey": {
"path": "/home/user/Documents/Application/fabric-multipeer/crypto-config/peerOrganizations/peerStanc.com/users/Admin@peerStanc.com/msp/keystore"
},
"signedCert": {
"path": "/home/user/Documents/Application/fabric-multipeer/crypto-config/peerOrganizations/peerStanc.com/users/Admin@peerStanc.com/msp/signcerts"
}
},
"StancOrgAMSP": {
"mspid": "StancOrgAMSP",
"fullpath": false,
"adminPrivateKey": {
"path": "/home/user/Documents/Application/fabric-multipeer/crypto-config/peerOrganizations/peerStancA.com/users/Admin@peerStancA.com/msp/keystore"
},
"signedCert": {
"path": "/home/user/Documents/Application/fabric-multipeer/crypto-config/peerOrganizations/peerStancA.com/users/Admin@peerStancA.com/msp/signcerts"
}
},
"StancOrgBMSP": {
"mspid": "StancOrgBMSP",
"fullpath": false,
"adminPrivateKey": {
"path": "/home/user/Documents/Application/fabric-multipeer/crypto-config/peerOrganizations/peerStancB.com/users/Admin@peerStancB.com/msp/keystore"
},
"signedCert": {
"path": "/home/user/Documents/Application/fabric-multipeer/crypto-config/peerOrganizations/peerStancB.com/users/Admin@peerStancB.com/msp/signcerts"
}
},
"StancOrdererMSP": {
"mspid": "StancOrdererMSP",
"fullpath": false,
"adminPrivateKey": {
"path": "/home/user/Documents/Application/fabric-multipeer/crypto-config/ordererOrganizations/StancOrdr.com/users/Admin@StancOrdr.com/msp/keystore"
}
}
},
"peers": {
"HOSTA.peerStanc.com": {
"tlsCACerts": {
"path": "/home/user/Documents/Application/fabric-multipeer/crypto-config/peerOrganizations/peerStanc.com/peers/HOSTA.peerStanc.com/tls/ca.crt"
},
"url": "grpc://localhost:7051",
"eventUrl": "grpc://localhost:7053",
"grpcOptions": {
"ssl-target-name-override": "HOSTA.peerStanc.com"
}
},
"HOSTA.peerStancA.com": {
"tlsCACerts": {
"path": "/home/user/Documents/Application/fabric-multipeer/crypto-config/peerOrganizations/peerStancA.com/peers/HOSTA.peerStancA.com/tls/ca.crt"
},
"url": "grpc://localhost:8051",
"eventUrl": "grpc://localhost:8053",
"grpcOptions": {
"ssl-target-name-override": "HOSTA.peerStancA.com"
}
},
"HOSTA.peerStancB.com": {
"tlsCACerts": {
"path": "/home/user/Documents/Application/fabric-multipeer/crypto-config/peerOrganizations/peerStancB.com/peers/HOSTA.peerStancB.com/tls/ca.crt"
},
"url": "grpc://localhost:9051",
"eventUrl": "grpc://localhost:9053",
"grpcOptions": {
"ssl-target-name-override": "HOSTA.peerStancB.com"
}
}
},
"orderers": {
"StancOrderer.StancOrdr.com": {
"url": "grpc://localhost:7050"
}
}
},
"network-2": {}
},
"configtxgenToolPath": "/home/user/Documents/Application/bin",
"license": "Apache-2.0"
}
我已经成功托管了资源管理器应用程序,但是它没有显示3个组织以及对等方的列表,仅显示正在运行的HOSTA.peerStanc.com,我如何列出所有对等方及其状态如跑步? 我已经以不同的方式更新了资源管理器的配置文件。有人可以帮忙吗? 感谢您的帮助。