Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Modifying the genesis block using configtxlator

I'm a little confused as to how to modify the system channel configuration once the Fabric network is operational.

I gather that the configtxlator tool can be used to create a patch transaction with the necessary changes, but how is this transaction then applied to the system channel? Can the peer channel update CLI tool be used for this?

like image 636
jmcnevin Avatar asked Aug 12 '26 21:08

jmcnevin


1 Answers

You can find how-to tour on reconfiguring the channel with configtxlator tool. Basically the high level flow will be:

  1. Decode the configuration into json using configtxlator.
  2. Extract config section
  3. Create new configuration
  4. Encode both new and old configs
  5. Send them to compute the config update delta
  6. Decode the config update and wrap up into envelope
  7. Produce new config transaction
  8. Update channel by submitting new config.

Here is the link for official docs describing reconfiguration flow in details.

And yes you can use peer cli tool to update the configuration as following:

peer channel update -f config_update_as_envelope.pb -c mychannel -o orderer:7050
like image 52
Artem Barger Avatar answered Aug 19 '26 20:08

Artem Barger



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!