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
One of the most common questions when attempting to add an organization
to a channel is how to get the JSON definition for that organization.
The only real way to do this at present is to generate a genesis block,
decode the block, then go look for the org definition.
This CR adds a '-printOrg' flag to configtxgen which will print the
organization's definition as JSON to make this process easier.
Change-Id: Id12098f36feae8ca4751b82afaf2914166077e50
Signed-off-by: Jason Yellick <jyellick@us.ibm.com>
flag.StringVar(&outputBlock, "outputBlock", "", "The path to write the genesis block to (if set)")
211
229
flag.StringVar(&channelID, "channelID", genesisconfig.TestChainID, "The channel ID to use in the configtx")
@@ -215,6 +233,7 @@ func main() {
215
233
flag.StringVar(&inspectChannelCreateTx, "inspectChannelCreateTx", "", "Prints the configuration contained in the transaction at the specified path")
216
234
flag.StringVar(&outputAnchorPeersUpdate, "outputAnchorPeersUpdate", "", "Creates an config update to update an anchor peer (works only with the default channel creation, and only for the first update)")
217
235
flag.StringVar(&asOrg, "asOrg", "", "Performs the config generation as a particular organization (by name), only including values in the write set that org (likely) has privilege to set")
236
+
flag.StringVar(&printOrg, "printOrg", "", "Prints the definition of an organization as JSON. (useful for adding an org to a channel manually)")
218
237
219
238
version:=flag.Bool("version", false, "Show version information")
0 commit comments