forked from suddutt1/fabricnetgenerator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexampleconfig.go
53 lines (47 loc) · 1.53 KB
/
exampleconfig.go
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
package main
import "io/ioutil"
//GenerateExampleConfig Generate exmaple config
func GenerateExampleConfig(version, basePath string) {
ioutil.WriteFile(basePath+"network-config.json", []byte(_network_config_v1_example), 0666)
}
const _network_config_v1_example = `
{
"fabricVersion":"1.4.2",
"orderers":{
"name" :"Orderer","mspID":"OrdererMSP","domain":"supplychain.net","ordererHostname":"orderer","SANS":"localhost","type":"raft","haCount":3
},
"addCA":"true",
"orgs":[
{
"name" :"Buyer",
"domain":"superbuyer.com",
"mspID":"BuyerMSP",
"SANS":"localhost",
"peerCount":2,
"userCount":2
},
{
"name" :"Seller",
"domain":"rapidseller.net",
"mspID":"SellerMSP",
"SANS":"localhost",
"peerCount":2,
"userCount":2
},
{
"name" :"Transporter",
"domain":"transnet.com",
"mspID":"TransporterMSP",
"SANS":"localhost",
"peerCount":2,
"userCount":2
}
],
"consortium":"SupplyChainConsortium",
"channels" :[
{"channelName":"Sales","orgs":["Buyer","Seller"] },
{"channelName":"Logistics","orgs":["Buyer","Seller","Transporter"] }
],
"chaincodes":[{"channelName":"Sales","ccid":"salestrade","version":"1.0","src":"github.com/salestrade","participants":["Buyer","Seller"]}]
}
`