0

我已经成功设置并运行了我的 3 个订购者、3 个组织 - 9 个对等超级账本结构网络。尽管 hyperledger explorer 似乎以标准化方式(无 docker)运行而没有错误,但它只显示组织“org1MSP”的 CORE_PEER_GOSSIP_EXTERNALENDPOINT 协议中指定的对等点,该协议位于 config.json 文件的第 10 行。

请在 config.json 文件下方找到。

{
"name": "test-network",
"version": "1.0.0",
"license": "Apache-2.0",
"client": {
    "tlsEnable": true,
    "adminUser": "admin",
    "adminPassword": "adminpw",
    "enableAuthentication": false,
    "organization": "org1MSP",
    "connection": {
        "timeout": {
            "peer": {
                "endorser": "300"
            },
            "orderer": "300"
        }
    }
},
"channels": {
    "mychannel": {
        "orderers": [
            "orderer1.test.com",
            "orderer2.test.com",
            "orderer2.test.com"
        ],
        "peers": {
            "peer0.org1.test.com": {},
            "peer1.org1.test.com": {},
            "peer2.org1.test.com": {},
            "peer0.org2.test.com": {},
            "peer1.org2.test.com": {},
            "peer2.org2.test.com": {},
            "peer0.org3.test.com": {},
            "peer1.org3.test.com": {},
            "peer2.org3.test.com": {}
        },
        "connection": {
            "timeout": {
                "peer": {
                    "endorser": "6000",
                    "eventHub": "6000",
                    "eventReg": "6000"
                }
            }
        }
    }
},
"organizations": {
    "org1MSP": {
        "mspid": "org1MSP",
        "peers": [
            "peer0.org1.test.com",
            "peer1.org1.test.com",
            "peer2.org1.test.com"
        ],
        "fullpath": true,
        "adminPrivateKey": {
            "path": "/home/xarhs/hyperledger/fabric-samples/test-network/crypto-config/peerOrganizations/org1.test.com/users/Admin@org1.test.com/msp/keystore/7f7056172b7d3667783dfa1567e8a8617512ded3e7ace54d04ce49e4d66882f1_sk"
        },
        "signedCert": {
            "path": "/home/xarhs/hyperledger/fabric-samples/test-network/crypto-config/peerOrganizations/org1.test.com/users/Admin@org1.test.com/msp/signcerts/Admin@org1.test.com-cert.pem"
        }
    },
    "org2MSP": {
        "mspid": "org2MSP",
        "peers": [
            "peer0.org2.test.com",
            "peer1.org2.test.com",
            "peer2.org2.test.com"
        ],
        "fullpath": true,
        "adminPrivateKey": {
            "path": "/home/xarhs/hyperledger/fabric-samples/test-network/crypto-config/peerOrganizations/org2.test.com/users/Admin@org2.test.com/msp/keystore/9b1c877670442b629bc2512f96f2b4e5f534cbe97c47657dcfcfa3e3a1d13a5f_sk"
        },
        "signedCert": {
            "path": "/home/xarhs/hyperledger/fabric-samples/test-network/crypto-config/peerOrganizations/org2.test.com/users/Admin@org2.test.com/msp/signcerts/Admin@org2.test.com-cert.pem"
        }
    },
    "org3MSP": {
        "mspid": "org3MSP",
        "peers": [
            "peer0.org3.test.com",
            "peer1.org3.test.com",
            "peer2.org3.test.com"
        ],
        "fullpath": true,
        "adminPrivateKey": {
            "path": "/home/xarhs/hyperledger/fabric-samples/test-network/crypto-config/peerOrganizations/org3.test.com/users/Admin@org3.test.com/msp/keystore/a1d310fc74eea57d6242dcbeced092e8c89076683f4b83266d51264a8121ab5c_sk"
        },
        "signedCert": {
            "path": "/home/xarhs/hyperledger/fabric-samples/test-network/crypto-config/peerOrganizations/org3.test.com/users/Admin@org3.test.com/msp/signcerts/Admin@org3.test.com-cert.pem"
        }
    }
},
"peers": {
    "peer0.org1.test.com": {
        "name": "org1",
        "tlsCACerts": {
            "path": "/home/xarhs/hyperledger/fabric-samples/test-network/crypto-config/peerOrganizations/org1.test.com/peers/peer0.org1.test.com/tls/ca.crt"
        },
        "url": "grpcs://localhost:7051",
        "eventUrl": "grpcs://localhost:7053",
        "grpcOptions": {
            "ssl-target-name-override": "peer0.org1.test.com"
        }
    },
    "peer1.org1.test.com": {
        "name": "org1",
        "tlsCACerts": {
            "path": "/home/xarhs/hyperledger/fabric-samples/test-network/crypto-config/peerOrganizations/org1.test.com/peers/peer1.org1.test.com/tls/ca.crt"
        },
        "url": "grpcs://localhost:8051",
        "eventUrl": "grpcs://localhost:8053",
        "grpcOptions": {
            "ssl-target-name-override": "peer1.org1.test.com"
        }
    },
    "peer2.org1.test.com": {
        "name": "org1",
        "tlsCACerts": {
            "path": "/home/xarhs/hyperledger/fabric-samples/test-network/crypto-config/peerOrganizations/org1.test.com/peers/peer2.org1.test.com/tls/ca.crt"
        },
        "url": "grpcs://localhost:9051",
        "eventUrl": "grpcs://localhost:9053",
        "grpcOptions": {
            "ssl-target-name-override": "peer2.org1.test.com"
        }
    },
    "peer0.org2.test.com": {
        "name": "org2",
        "tlsCACerts": {
            "path": "/home/xarhs/hyperledger/fabric-samples/test-network/crypto-config/peerOrganizations/org2.test.com/peers/peer0.org2.test.com/tls/ca.crt"
        },
        "url": "grpcs://localhost:10051",
        "eventUrl": "grpcs://localhost:10053",
        "grpcOptions": {
            "ssl-target-name-override": "peer0.org2.test.com"
        }
    },
    "peer1.org2.test.com": {
        "name": "org2",
        "tlsCACerts": {
            "path": "/home/xarhs/hyperledger/fabric-samples/test-network/crypto-config/peerOrganizations/org2.test.com/peers/peer1.org2.test.com/tls/ca.crt"
        },
        "url": "grpcs://localhost:11051",
        "eventUrl": "grpcs://localhost:11053",
        "grpcOptions": {
            "ssl-target-name-override": "peer1.org2.test.com"
        }
    },
    "peer2.org2.test.com": {
        "name": "org2",
        "tlsCACerts": {
            "path": "/home/xarhs/hyperledger/fabric-samples/test-network/crypto-config/peerOrganizations/org2.test.com/peers/peer2.org2.test.com/tls/ca.crt"
        },
        "url": "grpcs://localhost:12051",
        "eventUrl": "grpcs://localhost:12053",
        "grpcOptions": {
            "ssl-target-name-override": "peer2.org2.test.com"
        }
    },
    "peer0.org3.test.com": {
        "name": "org3",
        "tlsCACerts": {
            "path": "/home/xarhs/hyperledger/fabric-samples/test-network/crypto-config/peerOrganizations/org3.test.com/peers/peer0.org3.test.com/tls/ca.crt"
        },
        "url": "grpcs://localhost:13051",
        "eventUrl": "grpcs://localhost:13053",
        "grpcOptions": {
            "ssl-target-name-override": "peer0.org3.test.com"
        }
    },
    "peer1.org3.test.com": {
        "name": "org3",
        "tlsCACerts": {
            "path": "/home/xarhs/hyperledger/fabric-samples/test-network/crypto-config/peerOrganizations/org3.test.com/peers/peer1.org3.test.com/tls/ca.crt"
        },
        "url": "grpcs://localhost:14051",
        "eventUrl": "grpcs://localhost:14053",
        "grpcOptions": {
            "ssl-target-name-override": "peer1.org3.test.com"
        }
    },
    "peer2.org3.test.com": {
        "name": "org3",
        "tlsCACerts": {
            "path": "/home/xarhs/hyperledger/fabric-samples/test-network/crypto-config/peerOrganizations/org3.test.com/peers/peer2.org3.test.com/tls/ca.crt"
        },
        "url": "grpcs://localhost:15051",
        "eventUrl": "grpcs://localhost:15053",
        "grpcOptions": {
            "ssl-target-name-override": "peer2.org3.test.com"
        },
        "orderers": {
            "orderer1.test.com": {
                "url": "grpcs://localhost:7050"
            },
            "orderer2.test.com": {
                "url": "grpcs://localhost:8050"
            },
            "orderer3.test.com": {
                "url": "grpcs://localhost:9050"
            }
        }
    }
}

}

我尝试将 org1MSP 更改为 org2MSP 等,并且资源管理器成功地仅显示相关的同行。我很难弄清楚为什么资源管理器无法成功解析所有组织。任何线索将不胜感激!

4

0 回答 0