Skip to content

Commit

Permalink
[FAB-6345] examples/configupdate some error.
Browse files Browse the repository at this point in the history
Fix #FAB-6345's spelling error and format.

Change-Id: I8fc634c198d5889f8e3e6d36b663e030be356871
Signed-off-by: Zhangjiong Xuan <[email protected]>
  • Loading branch information
Zhangjiong Xuan authored and mastersingh24 committed Oct 28, 2017
1 parent 2c40bd5 commit ee23940
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/configtxupdate/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ The standard usage is expected to be:
4. `configtxlator` used to compute config update representation of changes to the config
5. SDK submits signs and submits config

The `configtxlator` tool exposes a truly stateless REST API for interacting with configuration elements. These REST components support converting the native configuration format to/from a human readable JSON representation, as well as computing computing configuration updates based on the difference between two configurations.
The `configtxlator` tool exposes a truly stateless REST API for interacting with configuration elements. These REST components support converting the native configuration format to/from a human readable JSON representation, as well as computing configuration updates based on the difference between two configurations.

Because the `configtxlator` service deliberately does not contain any crypto material, or otherwise secret information, it does not include any authorization or access control. The anticipated typical deployment would be to operate as a sandboxed container, locally with the application, so that there is a dedicated configtxlator process for each consumer of it.

## Buliding and running the configtxlator
## Building and running the configtxlator

The `configtxlator` binary may be produced by executing `make configtxlator`.

Expand All @@ -37,7 +37,7 @@ For instance, to decode a configuration block saved as `configuration_block.pb`,
curl -X POST --data-binary @configuration_block.pb http://127.0.0.1:7059/protolator/decode/common.Block
```

To convert the human readable JSON version of the proto message, simply post the JSON version to `http://$SERVER:$PORT/protolator/encode/<message.Name` where `<message.Name>` is again the fully qualified proto name of the message.
To convert the human readable JSON version of the proto message, simply post the JSON version to `http://$SERVER:$PORT/protolator/encode/<message.Name>` where `<message.Name>` is again the fully qualified proto name of the message.

For instance, re-encode the block saved as `configuration_block.json`, run the command:

Expand All @@ -57,7 +57,7 @@ For example, given the original config as the file `original_config.pb` and the
curl -X POST -F channel=desiredchannel -F original=@original_config.pb -F updated=@updated_config.pb http://127.0.0.1:7059/configtxlator/compute/update-from-configs
```

## Bootstraping example
## Bootstrapping example

First build and start the `configtxlator`.

Expand Down Expand Up @@ -102,7 +102,7 @@ Decode the genesis block into a human editable form.
```
curl -X POST --data-binary @genesis_block.pb http://127.0.0.1:7059/protolator/decode/common.Block > genesis_block.json
```
Edit the `genesis_block.json` file in your favorite JSON editor, or manipulate it programatically, here, we use the JSON CLI tool `jq`. For simplicity, we are editing the batch size for the channel, because it is a single numeric field, but any edits, including policy and MSP edits may be made here.
Edit the `genesis_block.json` file in your favorite JSON editor, or manipulate it programmatically, here, we use the JSON CLI tool `jq`. For simplicity, we are editing the batch size for the channel, because it is a single numeric field, but any edits, including policy and MSP edits may be made here.
```
$ export MAXBATCHSIZEPATH=".data.data[0].payload.data.config.channel_group.groups.Orderer.values.BatchSize.value.max_message_count"
# Display the old batch size
Expand Down

0 comments on commit ee23940

Please sign in to comment.