You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/channel-setup.md
+11-16
Original file line number
Diff line number
Diff line change
@@ -14,23 +14,22 @@ The commands are work in progress. In particular, there will be more configurati
14
14
https://jira.hyperledger.org/browse/FAB-1639
15
15
https://jira.hyperledger.org/browse/FAB-1580
16
16
```
17
+
Assuming the orderer and peer have been built, and the executables are available in build/bin directory. Switch to build/bin directory.
17
18
18
19
## Create a channel
19
20
### Using CLI in Vagrant environment
20
21
_Vagrant window 1 - start orderer_
21
22
22
23
```
23
-
cd orderer
24
24
ORDERER_GENERAL_LOGLEVEL=debug ./orderer
25
25
```
26
26
_Vagrant window 2 - ask orderer to create a chain_
27
27
28
28
```
29
-
cd peer
30
-
peer channel create -c mychannel
29
+
peer channel create -c myc1
31
30
```
32
31
33
-
On successful creation, a genesis block mychannel.block is saved in the same directory.
32
+
On successful creation, a genesis block myc1.block is saved in build/bin directory.
34
33
35
34
### Using docker environment
36
35
TODO
@@ -40,23 +39,21 @@ TODO
40
39
_Vagrant window 3 - start the peer in a "chainless" mode_
41
40
42
41
```
43
-
#NOTE - clear the environment with rm -rf /var/hyperledger/* after updating fabric to get channel support.
42
+
#NOTE - clear the environment with rm -rf /var/hyperledger/* after updating fabric to get channel support.
44
43
45
-
cd peer
46
44
peer node start --peer-defaultchain=false
47
45
```
48
46
49
47
```
50
-
"--peer-defaultchain=true" is the default. It allow users continue to work with the default **TEST_CHAINID** without having to join a chain.
48
+
"--peer-defaultchain=true" is the default. It allow users continue to work with the default **TEST_CHAINID** without having to join a chain.
51
49
52
-
"--peer-defaultchain=false" starts the peer with only the channels that were joined by the peer. If the peer never joined a channel it would start up without any channels. In particular, it does not have the default **TEST_CHAINID** support.
50
+
"--peer-defaultchain=false" starts the peer with only the channels that were joined by the peer. If the peer never joined a channel it would start up without any channels. In particular, it does not have the default **TEST_CHAINID** support.
53
51
54
-
To join channels, a peer MUST be started with the "--peer-defaultchain=false" option.
52
+
To join channels, a peer MUST be started with the "--peer-defaultchain=false" option.
55
53
```
56
-
_Vagrant window 4 - peer to join a channel_
54
+
_Vagrant window 2 - peer to join a channel_
57
55
58
56
```
59
-
cd peer
60
57
peer channel join -b myc1.block
61
58
```
62
59
@@ -71,7 +68,6 @@ At this point we can issue transactions.
0 commit comments