-
- Downloads
[FAB-13444] Prepare onboarding to multi-time use
This change set refactors the onboarding infrastructure to support
multiple use of it, in contrast to the current logic which
can only be used once.
Namely, it re-uses the current logic and introduces a new method
to the replicationInitiator:
replicateChains(lastConfigBlock *common.Block, chains []string)
Which forces replication of the given chain names, with the given
last config block.
The chains slice is passed to the cluster.Replicator as a filter
which prevents pulling chains that aren't among the chains slice.
Change-Id: I3331f2abb6a2879876644b2f5ef4ee48c4eb43fa
Signed-off-by:
yacovm <yacovm@il.ibm.com>
Showing
- orderer/common/cluster/replication.go 9 additions, 0 deletionsorderer/common/cluster/replication.go
- orderer/common/cluster/replication_test.go 23 additions, 1 deletionorderer/common/cluster/replication_test.go
- orderer/common/server/main.go 6 additions, 7 deletionsorderer/common/server/main.go
- orderer/common/server/onboarding.go 36 additions, 12 deletionsorderer/common/server/onboarding.go
- orderer/common/server/onboarding_test.go 148 additions, 53 deletionsorderer/common/server/onboarding_test.go
Loading
Please register or sign in to comment