Skip to content

v0.0.7

Choose a tag to compare

@caod123 caod123 released this 28 Jul 21:29
a97807f

v0.0.7 - July 28, 2020

This release adds support for FAB-18062 and FAB-18063 in order to provide API functions for modifying orderer and MSP values directly instead of requiring the user to first fetch the existing configuration and setting it after making any necessary changes. For example the old path for setting MaxMessageCount has changed from:

o := c.Orderer()
ordererConfig := o.Configuration()
ordererConfig.BatchSize.MaxMessageCount = 100
o.SetConfiguration(ordererConfig)

to

o := c.Orderer()
o.BatchSize().SetMaxMessageCount(100)

Similar API chaining now exists for other top level orderer values, BatchSize values, EtcdRaftOptions and MSP configuration as well.
The old pattern of retrieving the configuration and setting will still be supported for the time being for any use cases that prefer to integrate with that method.