-
- Downloads
Switch blockcutter to always use sharedconfig
There was a XXX in the multichain manager to push the blockcutter
batchSize into the blockcutter via sharedconfig, rather than to pass it
at construction time. This is necessary to be able to dynamically
change the value of the batch size after genesis.
This changeset also introduces a sharedconfig mock structure in the
orderer/mocks package as it will likely be more broadly useful to other
tests going forward.
Change-Id: I1af47c3ca62a545236efa1e03280203ec5e75a76
Signed-off-by:
Jason Yellick <jyellick@us.ibm.com>
Showing
- orderer/common/blockcutter/blockcutter.go 10 additions, 9 deletionsorderer/common/blockcutter/blockcutter.go
- orderer/common/blockcutter/blockcutter_test.go 6 additions, 5 deletionsorderer/common/blockcutter/blockcutter_test.go
- orderer/mocks/sharedconfig.go 43 additions, 0 deletionsorderer/mocks/sharedconfig.go
- orderer/mocks/sharedconfig_test.go 27 additions, 0 deletionsorderer/mocks/sharedconfig_test.go
- orderer/multichain/chainsupport.go 1 addition, 2 deletionsorderer/multichain/chainsupport.go
Loading
Please register or sign in to comment