Skip to content

Commit c18a194

Browse files
author
anoop
committed
docs/source/channel_update_tutorial.rst: CHANNEL_NAME variable missing in 2 places in channel update tutorial
The channel 'mychannel' is hardcoded in the middle of the channel update tutorial. This looks like a silly typo, but when working with different channel names this can be a pain. Signed-off-by: anoop <anoop@tuxera.com>
1 parent fc86d1a commit c18a194

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/source/channel_update_tutorial.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ earlier. We'll name this file ``org3_update_in_envelope.json``:
380380

381381
.. code:: bash
382382
383-
echo '{"payload":{"header":{"channel_header":{"channel_id":"mychannel", "type":2}},"data":{"config_update":'$(cat org3_update.json)'}}}' | jq . > org3_update_in_envelope.json
383+
echo '{"payload":{"header":{"channel_header":{"channel_id":"'$CHANNEL_NAME'", "type":2}},"data":{"config_update":'$(cat org3_update.json)'}}}' | jq . > org3_update_in_envelope.json
384384
385385
Using our properly formed JSON -- ``org3_update_in_envelope.json`` -- we will
386386
leverage the ``configtxlator`` tool one last time and convert it into the
@@ -820,7 +820,7 @@ stripped away header, outputting it to ``anchor_update_in_envelope.json``
820820

821821
.. code:: bash
822822
823-
echo '{"payload":{"header":{"channel_header":{"channel_id":"mychannel", "type":2}},"data":{"config_update":'$(cat anchor_update.json)'}}}' | jq . > anchor_update_in_envelope.json
823+
echo '{"payload":{"header":{"channel_header":{"channel_id":"'$CHANNEL_NAME'", "type":2}},"data":{"config_update":'$(cat anchor_update.json)'}}}' | jq . > anchor_update_in_envelope.json
824824
825825
Now that we have reincorporated the envelope we need to convert it
826826
to a protobuf so it can be properly signed and submitted to the orderer for the update.

0 commit comments

Comments
 (0)