From c18a194ac27ed05ab576cd42d120f02ca8af7642 Mon Sep 17 00:00:00 2001 From: anoop Date: Fri, 22 Nov 2019 15:45:13 +0200 Subject: [PATCH] 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 --- docs/source/channel_update_tutorial.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/channel_update_tutorial.rst b/docs/source/channel_update_tutorial.rst index 2aead00d89e..3f343e5bd34 100644 --- a/docs/source/channel_update_tutorial.rst +++ b/docs/source/channel_update_tutorial.rst @@ -380,7 +380,7 @@ earlier. We'll name this file ``org3_update_in_envelope.json``: .. code:: bash - echo '{"payload":{"header":{"channel_header":{"channel_id":"mychannel", "type":2}},"data":{"config_update":'$(cat org3_update.json)'}}}' | jq . > org3_update_in_envelope.json + echo '{"payload":{"header":{"channel_header":{"channel_id":"'$CHANNEL_NAME'", "type":2}},"data":{"config_update":'$(cat org3_update.json)'}}}' | jq . > org3_update_in_envelope.json Using our properly formed JSON -- ``org3_update_in_envelope.json`` -- we will 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`` .. code:: bash - echo '{"payload":{"header":{"channel_header":{"channel_id":"mychannel", "type":2}},"data":{"config_update":'$(cat anchor_update.json)'}}}' | jq . > anchor_update_in_envelope.json + echo '{"payload":{"header":{"channel_header":{"channel_id":"'$CHANNEL_NAME'", "type":2}},"data":{"config_update":'$(cat anchor_update.json)'}}}' | jq . > anchor_update_in_envelope.json Now that we have reincorporated the envelope we need to convert it to a protobuf so it can be properly signed and submitted to the orderer for the update.