Skip to content

Commit

Permalink
Update docs and sampleconfig to remove the outputAnchorPeersUpdate flag
Browse files Browse the repository at this point in the history
Signed-off-by: Tatsuya Sato <tatsuya.sato.so@hitachi.com>
  • Loading branch information
satota2 committed Apr 10, 2024
1 parent 751c35d commit b9f647a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 43 deletions.
17 changes: 0 additions & 17 deletions docs/source/commands/configtxgen.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ Usage of configtxgen:
Prints the configuration contained in the block at the specified path
-inspectChannelCreateTx string
[DEPRECATED] Prints the configuration contained in the transaction at the specified path
-outputAnchorPeersUpdate string
[DEPRECATED] Creates a config update to update an anchor peer (works only with the default channel creation, and only for the first update)
-outputBlock string
The path to write the genesis block to (if set)
-outputCreateChannelTx string
Expand Down Expand Up @@ -93,21 +91,6 @@ for channel reconfiguration workflows, such as adding a member).
configtxgen -printOrg Org1
```

### Output anchor peer tx (deprecated)

**Note:** The channel creation transaction was used in order to create a new application channel using a system channel. Because the system channel is no longer supported since release v3.0, it is now deprecated.

Output a channel configuration update transaction `anchor_peer_tx.pb` based on
the anchor peers defined for Org1 and channel profile SampleSingleMSPChannelV1_1
in `configtx.yaml`. Transaction will set anchor peers for Org1 if no anchor peers
have been set on the channel.
```
configtxgen -outputAnchorPeersUpdate anchor_peer_tx.pb -profile SampleSingleMSPChannelV1_1 -asOrg Org1
```

The `-outputAnchorPeersUpdate` output flag has been deprecated. To set anchor
peers on the channel, use [configtxlator](configtxlator.html) to update the
channel configuration.

## Configuration

Expand Down
15 changes: 0 additions & 15 deletions docs/wrappers/configtxgen_postscript.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,21 +48,6 @@ for channel reconfiguration workflows, such as adding a member).
configtxgen -printOrg Org1
```

### Output anchor peer tx (deprecated)

**Note:** The channel creation transaction was used in order to create a new application channel using a system channel. Because the system channel is no longer supported since release v3.0, it is now deprecated.

Output a channel configuration update transaction `anchor_peer_tx.pb` based on
the anchor peers defined for Org1 and channel profile SampleSingleMSPChannelV1_1
in `configtx.yaml`. Transaction will set anchor peers for Org1 if no anchor peers
have been set on the channel.
```
configtxgen -outputAnchorPeersUpdate anchor_peer_tx.pb -profile SampleSingleMSPChannelV1_1 -asOrg Org1
```

The `-outputAnchorPeersUpdate` output flag has been deprecated. To set anchor
peers on the channel, use [configtxlator](configtxlator.html) to update the
channel configuration.

## Configuration

Expand Down
11 changes: 0 additions & 11 deletions sampleconfig/configtx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,6 @@ Organizations:
OrdererEndpoints:
- "127.0.0.1:7050"

# AnchorPeers defines the location of peers which can be used for
# cross-org gossip communication.
#
# NOTE: this value should only be set when using the deprecated
# `configtxgen --outputAnchorPeersUpdate` command. It is recommended
# to instead use the channel configuration update process to set the
# anchor peers for each organization.
AnchorPeers:
- Host: 127.0.0.1
Port: 7051

################################################################################
#
# CAPABILITIES
Expand Down

0 comments on commit b9f647a

Please sign in to comment.