Skip to content

Commit ba1d142

Browse files
author
Jason Yellick
committed
[FAB-2697] configtxgen crash mult anchorpeers
https://jira.hyperledger.org/browse/FAB-2697 When multiple anchor peers are specified, the configtxgen tool is trying to create multiple anchor peers structures rather than a single structure containing all of them. This CR resolves this by adding only the entire set of anchor peers, only once per application org. Change-Id: I738c8ffd3daed584a4d33de5c0a4977c0925a437 Signed-off-by: Jason Yellick <[email protected]>
1 parent f086f8b commit ba1d142

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/configtx/tool/provisional/provisional.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ func New(conf *genesisconfig.Profile) Generator {
158158
Host: anchorPeer.Host,
159159
Port: int32(anchorPeer.Port),
160160
})
161-
162-
bs.applicationGroups = append(bs.applicationGroups, config.TemplateAnchorPeers(org.Name, anchorProtos))
163161
}
162+
163+
bs.applicationGroups = append(bs.applicationGroups, config.TemplateAnchorPeers(org.Name, anchorProtos))
164164
}
165165

166166
}

0 commit comments

Comments
 (0)