---
# System prepended metadata

title: Updating the Network and Channel Configuration

---

# Updating the Network and Channel Configuration

## Configuration update tasks
How we can use configxlator tool and ./jq to automate the network configuration workflow
![](https://i.imgur.com/0FW1Bjy.png)
executed under `peer/multi-org-ca` and create file under `peer/config`
1. Fetch the latest config for channel
    `./fatch-config-json.sh ordererchannel`
    1. Fetch Latest Config block in protocol buffer form
    2. Convert to Json
    3. Extract the config data
    4. Create  a copy of config
    Each step generate a file under config subfolder
    
3. Modify config parameters & generate the Update Tx
    `./generate-config-update.sh ordererchannel`
    1. Convert extracted original config to protocol buffer form
    2. Convert extracted modified config to protocol buffer form
    3. Compute the Config Delta protocol buffer form
    4. Convert Delta protocol buffer form to JSON
    5. Wrap Delta JSON in HLF Tx Envelope
    6. Conput the Config Delta protocol buffer form
    Each step generate a file under config subfolder
4. Administrators sign the Update Tx
    `./sign-config-update.sh`
5. Submit the Update Tx to the network
    `./submit-config-update-tx.sh`

:::info
### Recipe-Updating the Channel Configuration
Channel performance tuning
- By default the maximum transaction per block = 10
        ![](https://i.imgur.com/FO5AJK1.png)
- Change it to for the ordererchannel

executed in `peer/multi-org-ca`
1. Setup the update config tx
    `. set-env.sh acme peer1 7050 admin`
    - Get the latest configuration ordererchannel
    `./fatch-config-json.sh ordererchannel`
    - Update the JSON file such that max_message_count = 5
    change `cfg_block_no_envelope_mod.json: max_message_count` to 5
    - Generate the config update tx file
    `./generate-config-update.sh ordererchannel`
3. Sign the update config tx & Submit
    `./sign-config-update.sh acme`
    `./sign-config-update.sh oderer admin`
    `./submit-config-update-tx.sh acme admin ordererchannel`
5. Validate by fetching latest config
    `./fatch-config-json.sh ordererchannel`
:::

:::info
### Recipe-Add a new member organization
New members need to be added in a LIVE Blockchain network
Membership is created on channel basis
![](https://i.imgur.com/EWHOGB2.png)
Objective is to add budget to airlinechannel
1. Setup the member org identities
    - Setup ORG admin's identity and create ORG MSP
        `set-idnetity.sh acme admin`
        ![](https://i.imgur.com/a4hBZBd.png)
        
3. Setup the config update tx
    1. `./fetch-config-json.sh airlinechannel`
    2. Generate the Org JSON representation and add Org JSON to config JSON file
        `./add-member-org.sh`
        ![](https://i.imgur.com/xNUOHdM.png)

    4. `./generate-config-update.sh airlinechannel`
4. Sign & submit the config update tx
    1. `./sign-config-update.sh acme`
    2. `./submit-config-update-tx.sh acme admin airlinechannel`
:::

:::info
### Exercise-Add a budget peer
Object is add an anchor peer for Budget
![](https://i.imgur.com/gJA0Liq.png)
If it is already in the Org declaration, we don't need to update the config
Executed: `peer.multi-org-ca`
1. `./register-enroll-peer.sh budget budger-peer1`
2. `./launch-peer.sh budget budget-peer1 9050`
    `./join-regular-peer-to-airlinechannel.sh budget budget-peer1 9050`
3. `. set-env.sh budget-peer1 9050`
    `peer channel list`
    `./valuidate-with-chaincode-3.sh `
:::