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
By default, peer channel create will create a file in the current
directory named $CHANNEL.block. If a different output file is desired,
the --outputBlock flag can be used to specify the path.
Change-Id: I8b0f2ced26c62a21e3139688c588c10763ed533c
Signed-off-by: Matthew Sykes <sykesmat@us.ibm.com>
Copy file name to clipboardexpand all lines: peer/channel/channel.go
+2
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,7 @@ var (
42
42
// create related variables
43
43
channelIDstring
44
44
channelTxFilestring
45
+
outputBlockstring
45
46
timeoutint
46
47
)
47
48
@@ -78,6 +79,7 @@ func resetFlags() {
78
79
flags.StringVarP(&genesisBlockPath, "blockpath", "b", common.UndefinedParamValue, "Path to file containing genesis block")
79
80
flags.StringVarP(&channelID, "channelID", "c", common.UndefinedParamValue, "In case of a newChain command, the channel ID to create.")
80
81
flags.StringVarP(&channelTxFile, "file", "f", "", "Configuration transaction file generated by a tool such as configtxgen for submitting to orderer")
82
+
flags.StringVarP(&outputBlock, "outputBlock", "", common.UndefinedParamValue, `The path to write the genesis block for the channel. (default ./<channelID>.block)`)
0 commit comments