-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FAB-871 Connect between deliver and gossip
Add client to connect to orderer service using deliver protocol and put blocks to gossip network to send to all peers Basically, enrich committer/noopssinglechain/client.go to pass imcomming messages to gossip network and integrate state syncronyzation mechanism in other nodes... Contains basic placeholders for leader election Change-Id: Ia444bbe490544d1587b468c91081aa66b640d280 Signed-off-by: Gennady Laventman <gennady@il.ibm.com> Signed-off-by: Artem Barger <bartem@il.ibm.com>
- Loading branch information
1 parent
d016edb
commit b5e18f0
Showing
7 changed files
with
329 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
version: '2' | ||
networks: | ||
bridge: | ||
|
||
services: | ||
orderer: | ||
image: hyperledger/fabric-orderer | ||
environment: | ||
- ORDERER_GENERAL_LEDGERTYPE=ram | ||
- ORDERER_GENERAL_BATCHTIMEOUT=10s | ||
- ORDERER_GENERAL_BATCHSIZE=2 | ||
- ORDERER_GENERAL_MAXWINDOWSIZE=1000 | ||
- ORDERER_GENERAL_ORDERERTYPE=solo | ||
- ORDERER_GENERAL_LISTENADDRESS=0.0.0.0 | ||
- ORDERER_GENERAL_LISTENPORT=5005 | ||
- ORDERER_RAMLEDGER_HISTORY_SIZE=100 | ||
working_dir: /opt/gopath/src/github.com/hyperledger/fabric/orderer | ||
command: orderer | ||
networks: | ||
- bridge | ||
|
||
|
||
vpserv: | ||
image: hyperledger/fabric-peer | ||
environment: | ||
- CORE_PEER_ADDRESSAUTODETECT=true | ||
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock | ||
- CORE_PEER_NETWORKID=${CORE_PEER_NETWORKID} | ||
- CORE_NEXT=true | ||
- CORE_PEER_ENDORSER_ENABLED=true | ||
- CORE_PEER_COMMITTER_ENABLED=true | ||
- CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer:5005 | ||
volumes: | ||
- /var/run/:/host/var/run/ | ||
networks: | ||
- bridge | ||
|
||
vp0: | ||
extends: | ||
service: vpserv | ||
environment: | ||
- CORE_PEER_ID=vp0 | ||
- CORE_PEER_PROFILE_ENABLED=true | ||
- CORE_PEER_GOSSIP_ORGLEADER=true | ||
ports: | ||
- 7051:7051 | ||
- 7053:7053 | ||
command: peer node start | ||
links: | ||
- orderer | ||
|
||
vp1: | ||
extends: | ||
service: vpserv | ||
environment: | ||
- CORE_PEER_ID=vp1 | ||
- CORE_PEER_PROFILE_ENABLED=true | ||
- CORE_PEER_GOSSIP_BOOTSTRAP=vp0:7051 | ||
- CORE_PEER_GOSSIP_ORGLEADER=false | ||
command: peer node start | ||
links: | ||
- orderer | ||
|
||
vp2: | ||
extends: | ||
service: vpserv | ||
environment: | ||
- CORE_PEER_ID=vp2 | ||
- CORE_PEER_PROFILE_ENABLED=true | ||
- CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer:5005 | ||
- CORE_PEER_GOSSIP_BOOTSTRAP=vp0:10000 | ||
- CORE_PEER_GOSSIP_ORGLEADER=false | ||
command: peer node start | ||
links: | ||
- orderer | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.