- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我有两个同级和两个组织(ri,re)。当我尝试在资源管理器中显示同级时,它总是显示 1 个同级。它没有显示 2 个同行。请找到下面的配置文件
{
"name": "eni-network",
"version": "1.0",
"client": {
"tlsEnable": false,
"adminUser": "admin",
"adminPassword": "adminpw",
"enableAuthentication": false,
"organization": "RmMsp",
"channel": "samplenetwork",
"connection": {
"timeout": {
"peer": {
"endorser": "300"
},
"orderer": "300"
}
}
},
"channels": {
"samplenetwork": {
"peers": {
"peer0.rm.ex1.com": {},
"peer0.re.ex1.com": {}
},
"connection": {
"timeout": {
"peer": {
"endorser": "6000",
"eventHub": "6000",
"eventReg": "6000"
}
}
}
}
},
"organizations": {
"RmMsp": {
"mspid": "RmMsp",
"fullpath": true,
"adminPrivateKey": {
"path": "/tmp/crypto/peerOrganizations/rm.ex1.com/users/Admin@rm.ex1.com/msp/keystore/845f6a174e7880f48b2201b2d5fbb15dbc142b9521b9bb23f7e92ee83281b48c_sk"
},
"signedCert": {
"path": "/tmp/crypto/peerOrganizations/rm.ex1.com/users/Admin@rm.ex1.com/msp/signcerts/Admin@rm.ex1.com-cert.pem"
}
},
"ReMsp": {
"mspid": "ReMsp",
"fullpath": true,
"adminPrivateKey": {
"path": "/tmp/crypto/peerOrganizations/re.ex1.com/users/Admin@re.ex1.com/msp/keystore/dcc66298e88a958688d996786556b0fcdba74dc051d80c459e0e75a2177aad97_sk"
},
"signedCert": {
"path": "/tmp/crypto/peerOrganizations/re.ex1.com/users/Admin@re.ex1.com/msp/signcerts/Admin@re.ex1.com-cert.pem"
}
},
"OrdererMSP": {
"mspid": "RmOrdererMsp",
"adminPrivateKey": {
"path": "/tmp/crypto/ordererOrganizations/rm.orderer/users/Admin@rm.orderer/msp/keystore/cd5770674b623f5f4a2fb218d6d778a224d9c3b464a34b8a9f38153a3542ff5f_sk"
}
}
},
"peers": {
"peer0.rm.ex1.com": {
"tlsCACerts": {
"path": "/tmp/crypto/peerOrganizations/rm.ex1.com/peers/peer0.rm.ex1.com/tls/ca.crt"
},
"url": "grpc://peer0.rm.ex1.com:7051",
"eventUrl": "grpc://peer0.rm.ex1.com:7053",
"grpcOptions": {
"ssl-target-name-override": "peer0.rm.ex1.com"
}
},
"peer0.re.ex1.com": {
"tlsCACerts": {
"path": "/tmp/crypto/peerOrganizations/re.ex1.com/peers/peer0.re.ex1.com/tls/ca.crt"
},
"url": "grpc://peer0.re.ex1.com:8051",
"eventUrl": "grpc://peer0.re.ex1.com:8053",
"grpcOptions": {
"ssl-target-name-override": "peer0.re.ex1.com"
}
}
},
"orderers": {
"orderer.rm.ex1.com": {
"url": "grpc://orderer.rm.ex1.com:7050"
}
}
}
click here for the image reference
请参阅上图了解更多信息。
docker-compose 文件
explorerdb.rm.ex1.com:
image: hyperledger/explorer-db:latest
container_name: explorerdb.rm.ex1.com
environment:
- DATABASE_DATABASE=fabricexplorer
- DATABASE_USERNAME=hppoc
- DATABASE_PASSWORD=password
volumes:
- ./createdb.sh:/docker-entrypoint-initdb.d/createdb.sh
- pgdata:/var/lib/postgresql/data
explorer.rm.ex1.com:
image: hyperledger/explorer:latest
container_name: explorer.rm.ex1.com
environment:
- DATABASE_HOST=explorerdb.rm.ex1.com
- DATABASE_USERNAME=hppoc
- DATABASE_PASSWD=password
- DISCOVERY_AS_LOCALHOST=false
volumes:
- ./scripts/config.json:/opt/explorer/app/platform/fabric/config.json
- ./scripts/connection-profile:/opt/explorer/app/platform/fabric/connection-profile
- ./crypto-config:/tmp/crypto
- walletstore:/opt/wallet
command: sh -c "sleep 16&& node /opt/explorer/main.js && tail -f /dev/null"
ports:
- 8090:8080
peer0.rm.ex1.com:
container_name: peer0.rm.ex1.com
extends:
file: /opt/shared/docker-compose-base.yaml
service: peer
environment:
- CORE_PEER_ID=peer0.rm.ex1.com
- CORE_PEER_ADDRESS=peer0.rm.ex1.com:7051
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.rm.ex1.com:7051
- CORE_PEER_GOSSIP_BOOTSTRAP=peer0.re.ex1.com:8051
- CORE_PEER_LOCALMSPID=RmMsp
- CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couch.peer0.rm.ex1.com:5984
volumes:
- /opt/rm/creds/peers/peer0.rm.ex1.com/msp:/etc/hyperledger/fabric/msp
- /opt/rm/creds/peers/peer0.rm.ex1.com/tls:/etc/hyperledger/fabric/tls
- peer0.rm.ex1.com:/var/hyperledger/production
ports:
- 7051:7051
peer0.re.ex1.com:
container_name: peer0.re.ex1.com
extends:
file: /opt/shared/docker-compose-base.yaml
service: peer
environment:
- CORE_PEER_ID=peer0.re.ex1.com
- CORE_PEER_ADDRESS=peer0.re.ex1.com:8051
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.re.ex1.com:8051
- CORE_PEER_GOSSIP_BOOTSTRAP=peer0.rm.ex1.com:7051
- CORE_PEER_LOCALMSPID=ReMsp
- CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couch.peer0.re.ex1.com:5984
volumes:
- /opt/re/creds/peers/peer0.re.ex1.com/msp:/etc/hyperledger/fabric/msp
- /opt/re/creds/peers/peer0.re.ex1.com/tls:/etc/hyperledger/fabric/tls
- peer0.re.ex1.com:/var/hyperledger/production
ports:
- 8051:8051
它必须显示两个对等点: 1)peer0.ri.ex1.com 2)peer0.re.ex1.com
但仅显示:peer0.ri.ex1.com。
如有任何线索,我们将不胜感激!
我已经检查了资源管理器日志文件..第二个组织(ReMsp)为空。请查找以下引用
orderers: { RmOrdererMsp: { endpoints: [Array] } },
peers_by_org: { RmMsp: { peers: [Array] }, ReMsp: { peers: [] } } }.
它看起来像 config.json 问题。任何线索将不胜感激。
最佳答案
检查 docker-compose 文件是否已在对等部分实现 GOSSIP 协议(protocol)。供引用 -
peer0.org3.bc4scm.de:
container_name: peer0.org3.bc4scm.de
extends:
file: peer-base.yaml
service: peer-base
environment:
- CORE_PEER_ID=peer0.org3.bc4scm.de
- CORE_PEER_ADDRESS=peer0.org3.bc4scm.de:11051
- CORE_PEER_LISTENADDRESS=0.0.0.0:11051
- CORE_PEER_CHAINCODEADDRESS=peer0.org3.bc4scm.de:11052
- CORE_PEER_CHAINCODELISTENADDRESS=0.0.0.0:11052
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org3.bc4scm.de:11051
- CORE_PEER_GOSSIP_BOOTSTRAP=peer1.org3.bc4scm.de:12051
- CORE_PEER_LOCALMSPID=Org3MSP
volumes:
- /var/run/:/host/var/run/
- ../crypto-config/peerOrganizations/org3.bc4scm.de/peers/peer0.org3.bc4scm.de/msp:/etc/hyperledger/fabric/msp
- ../crypto-config/peerOrganizations/org3.bc4scm.de/peers/peer0.org3.bc4scm.de/tls:/etc/hyperledger/fabric/tls
- peer0.org3.bc4scm.de:/var/hyperledger/production
ports:
- 11051:11051
peer1.org3.bc4scm.de:
container_name: peer1.org3.bc4scm.de
extends:
file: peer-base.yaml
service: peer-base
environment:
- CORE_PEER_ID=peer1.org3.bc4scm.de
- CORE_PEER_ADDRESS=peer1.org3.bc4scm.de:12051
- CORE_PEER_LISTENADDRESS=0.0.0.0:12051
- CORE_PEER_CHAINCODEADDRESS=peer1.org3.bc4scm.de:12052
- CORE_PEER_CHAINCODELISTENADDRESS=0.0.0.0:12052
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer1.org3.bc4scm.de:12051
- CORE_PEER_GOSSIP_BOOTSTRAP=peer0.org3.bc4scm.de:11051
- CORE_PEER_LOCALMSPID=Org3MSP
volumes:
- /var/run/:/host/var/run/
- ../crypto-config/peerOrganizations/org3.bc4scm.de/peers/peer1.org3.bc4scm.de/msp:/etc/hyperledger/fabric/msp
- ../crypto-config/peerOrganizations/supplier.bc4scm.de/peers/peer1.org3.bc4scm.de/tls:/etc/hyperledger/fabric/tls
- peer1.org3.bc4scm.de:/var/hyperledger/production
ports:
- 12051:12051
例如,您可以查看上面提到的同行 -
peer0.org3.bc4scm.de:- CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org3.bc4scm.de:11051- CORE_PEER_GOSSIP_BOOTSTRAP=peer1.org3.bc4scm.de:12051
peer1.org3.bc4scm.de:
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer1.org3.bc4scm.de:12051- CORE_PEER_GOSSIP_BOOTSTRAP=peer0.org3.bc4scm.de:11051
@根据您的网络更改您的文件。
更新--
peer0.rm.ex1.com:
- CORE_PEER_GOSSIP_BOOTSTRAP=peer0.re.ex1.com:8051
peer0.re.ex1.com:
- CORE_PEER_GOSSIP_BOOTSTRAP=peer0.rm.ex1.com:7051
关于node.js - super 账本-资源管理器 : not showing all peers in explorer,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57052810/
像其他人一样,我需要在 Internet Explorer 6 和 Internet Explorer 7 上测试我的代码。现在,Internet Explorer 8 为开发人员提供了一些很棒的工具
这个问题在这里已经有了答案: 10年前关闭。 Possible Duplicate: Running Internet Explorer 6, Internet Explorer 7, and Int
作为一名开发者,我发现新的 Internet Explorer 版本完全是一场噩梦。我关闭了 Windows 功能,但无法安装 Internet Explorer 10 。它说它已经安装,但事实并非如
我通过Blogger有一个博客-http://www.concertexperiencepeeps.com。每当我尝试通过Internet Explorer查看我的博客时,该页面都会崩溃,并且不允许我
这个问题在这里已经有了答案: 10年前关闭。 Possible Duplicate: Running Internet Explorer 6, Internet Explorer 7, and Int
我正在使用新的Internet Explorer 11开发人员工具将文档模式切换为“8”,但条件注释仍然被忽略,也就是说,它们没有被正确解析并且表现得像普通注释。因此,浏览器不会请求/加载条件注释内的
我在我的一个站点上遇到 Internet Explorer 6 问题,我真的希望我安装它而不是 Internet Explorer 7。有没有一种快速的方法来做到这一点? 最佳答案 下载Microso
关闭。这个问题需要debugging details .它目前不接受答案。 编辑问题以包含 desired behavior, a specific problem or error, and t
如何访问 Internet Explorer 运行实例的经典 Internet Explorer COM 自动化对象?也就是说,如果我在多个窗口中打开 Internet Explorer,如何从 Po
string filename = Server.UrlPathEncode(Path.GetFileName(_Filename))); Response.AddHeader("Content-Di
当我尝试使用 Apache 2.2 在 Windows7(64 位)上的 IE9 或 IE10 中打开 localhost 时,解析 URL 需要很长时间。其他浏览器没有问题并立即解析 URL,只有
我有一个批处理文件,必须启动 Internet Explorer 并打开 www.google.com .当整个页面加载完成时,它应该终止 IE 进程,即关闭该系统中的所有 IE 实例。我的批处理文件
关闭。这个问题不满足Stack Overflow guidelines .它目前不接受答案。 想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。 6 个月前关闭。 Improve t
基本上,无论我使用 IE 访问哪个网站,我都可以看到那些黑色/白色形状,一旦我将鼠标移到它们上,它们就会消失。 想知道是否有人知道可能导致这种情况的原因? 另外:http://imageshack.c
我检查了所有注册表,但找不到所有已安装扩展的列表。 此时,IE 扩展/加载项的任何一般位置都会有所帮助。 最佳答案 取自 here : 浏览器帮助对象 - 旨在增强浏览器功能的浏览器插件。 条目可以在
我在Internet Explorer 8的LAN设置中使用了2个不同的自动配置脚本地址。在工作过程中,我需要经常在它们之间进行切换。每次我必须手动进行。 有没有一种方法可以通过脚本等自动执行操作,以
这是一个两部分的问题。我正在构建一个网页,我需要知道: 有没有办法检测 IE 是否启用了平滑滚动(如果是,如何)? 有没有办法强制 IE 关闭我网页的平滑滚动功能? 明确地说,我不是在问如何关闭整个计
我想强制 IE10 在 IE9 模式下从我的 Intranet 呈现某些站点。 我曾尝试使用本地兼容性列表但无济于事(%LocalAppData%\Microsoft\Internet Explore
我在使用 IE8 时遇到问题,其中带有查询字符串的 URL 在下载时被破坏。 特别是,像这样的 URL http://domain.com/software/Software%202.1%20Beta
我有一个非常基本的页面,其中包括 元素。当我提交带有选定文件的表单时,服务器会响应一个在 Excel 中打开的电子表格(“新窗口”)。这种行为意味着初始屏幕和输入元素在 IE 中仍然可见。如果我更改所
我是一名优秀的程序员,十分优秀!