You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 25, 2025. It is now read-only.
- Orderers config in endpoint channels config will be
taken into consideration before going through orderers
in channel configuration.
- This functionality may get removed in future
Change-Id: I67a604f59b616b166a7e7a620ceca43ccb2a2650
Signed-off-by: Sudesh Shetty <sudesh.shetty@securekey.com>
//below call to get orderers from endpoint config 'channels.<CHANNEL-ID>.orderers' is not recommended.
60
+
//To override any orderer configuration items, entity matchers should be used.
61
+
orderers, err:=orderersFromChannel(ctx, cfg.ID())
62
+
iferr!=nil {
63
+
returnnil, err
64
+
}
65
+
iflen(orderers) >0 {
66
+
logger.Warn("Getting orderers from endpoint config channels.orderer is deprecated, use entity matchers to override orderer configuration")
67
+
logger.Warn("visit https://github.com/hyperledger/fabric-sdk-go/blob/master/test/fixtures/config/overrides/local_entity_matchers.yaml for samples")
68
+
returnorderers, nil
69
+
}
70
+
58
71
ordererDict, err:=orderersByTarget(ctx)
59
72
iferr!=nil {
60
73
returnnil, err
61
74
}
62
75
63
-
// Add orderer if specified in config
76
+
// Add orderer if specified in channel config
64
77
for_, target:=rangecfg.Orderers() {
65
78
66
79
// Figure out orderer configuration
67
80
oCfg, ok:=ordererDict[target]
68
81
82
+
//try entity matcher
69
83
if!ok {
70
84
logger.Debugf("Failed to get channel Cfg orderer [%s] from ordererDict, now trying orderer Matchers in Entity Matchers", target)
0 commit comments