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
Copy file name to clipboardexpand all lines: examples/configtxupdate/README.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -13,11 +13,11 @@ The standard usage is expected to be:
13
13
4.`configtxlator` used to compute config update representation of changes to the config
14
14
5. SDK submits signs and submits config
15
15
16
-
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.
16
+
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.
17
17
18
18
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.
19
19
20
-
## Buliding and running the configtxlator
20
+
## Building and running the configtxlator
21
21
22
22
The `configtxlator` binary may be produced by executing `make configtxlator`.
23
23
@@ -37,7 +37,7 @@ For instance, to decode a configuration block saved as `configuration_block.pb`,
37
37
curl -X POST --data-binary @configuration_block.pb http://127.0.0.1:7059/protolator/decode/common.Block
38
38
```
39
39
40
-
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.
40
+
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.
41
41
42
42
For instance, re-encode the block saved as `configuration_block.json`, run the command:
43
43
@@ -57,7 +57,7 @@ For example, given the original config as the file `original_config.pb` and the
57
57
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
58
58
```
59
59
60
-
## Bootstraping example
60
+
## Bootstrapping example
61
61
62
62
First build and start the `configtxlator`.
63
63
@@ -102,7 +102,7 @@ Decode the genesis block into a human editable form.
102
102
```
103
103
curl -X POST --data-binary @genesis_block.pb http://127.0.0.1:7059/protolator/decode/common.Block > genesis_block.json
104
104
```
105
-
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.
105
+
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.
0 commit comments