Ignore _lifecycle namespace in endorsement handler
When using Fabric 2.0, the _lifecycle namespace shows up in the endorsement response and an error is returned by the Discovery service when asking for endorsers for this namespace. This patch filters out the '_lifecycle' namespace (along with the 'lscc' namespace).
@@ -23,7 +23,7 @@ import (
var logger = logging.NewLogger("fabsdk/client")
var lsccFilter = func(ccID string) bool {
- return ccID != "lscc"
+ return ccID != "lscc" && ccID != "_lifecycle"
}
// SelectAndEndorseHandler selects endorsers according to the policies of the chaincodes in the provided invocation chain
