Modifying genesis block with configtxlator

I am a bit confused about how to change the system channel configuration when the Fabric Network is running.

I understand that the tool configtxlator

can be used to create a patch transaction with the required changes, but how does this transaction apply to the system channel? Can a CLI tool be used peer channel update

for this?

+3


source to share


1 answer


You can find a guide to recalibrating a channel using the tool configtxlator

. Basically the high level stream will be:

  • Decode configuration to json with configtxlator

    .
  • Fetch Configuration Section
  • Create a new configuration
  • Encode both new and old configurations
  • Send them to compute the configuration update delta li>
  • Decode config update and wrap in envelope
  • Perform a new configuration transaction
  • Update the channel by submitting a new configuration.

Here is a link to the white papers describing the reconfiguration flow in detail.



And yes, you can use the peer

cli tool to update the config like this:

peer channel update -f config_update_as_envelope.pb -c mychannel -o orderer:7050

      

+2


source







All Articles