-
Notifications
You must be signed in to change notification settings - Fork 72
/
Copy pathfablo-config-hlf2-2orgs-2chaincodes-raft.yaml
79 lines (79 loc) · 1.8 KB
/
fablo-config-hlf2-2orgs-2chaincodes-raft.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
---
"$schema": https://github.com/hyperledger-labs/fablo/releases/download/2.2.0/schema.json
global:
fabricVersion: 2.4.3
tls: true
monitoring:
loglevel: debug
orgs:
- organization:
name: Orderer1
domain: orderer1.com
orderers:
- groupName: group1
type: raft
instances: 3
- organization:
name: Orderer2
domain: orderer2.com
orderers:
- groupName: group2
type: solo
instances: 1
- organization:
name: Org1
domain: org1.example.com
# this is the default configuration for peers that may be used in other orgs
peer: &defaultPeerConfig
prefix: peer
instances: 2
anchorPeerInstances: 2
db: LevelDb
tools:
fabloRest: true
- organization:
name: Org2
domain: org2.example.com
peer: *defaultPeerConfig
channels:
- name: my-channel1
orgs:
- name: Org1
peers:
- peer0
- name: Org2
peers:
- peer0
- name: my-channel2
orgs:
- name: Org1
peers:
- peer1
- name: Org2
peers:
- peer1
- name: my-channel3
ordererGroup: group2
orgs:
- name: Org1
peers:
- peer0
- name: Org2
peers:
- peer1
chaincodes:
- name: chaincode1
version: 0.0.1
lang: node
channel: my-channel1
endorsement: OR ('Org1MSP.member', 'Org2MSP.member')
directory: "./chaincodes/chaincode-kv-node"
- name: chaincode2
version: 0.0.1
lang: java
channel: my-channel2
endorsement: OR ('Org1MSP.member', 'Org2MSP.member')
directory: "./chaincodes/chaincode-java-simple"
hooks:
# changes MaxMessageCount to 1
postGenerate: "perl -i -pe 's/MaxMessageCount: 10/MaxMessageCount: 1/g' \"./fablo-target/fabric-config/configtx.yaml\""