Example #1
0
// createSystemChainFilters creates the set of filters for the ordering system chain
func createSystemChainFilters(ml *multiLedger, configManager configtx.Manager) *filter.RuleSet {
	return filter.NewRuleSet([]filter.Rule{
		filter.EmptyRejectRule,
		newSystemChainFilter(ml),
		configtx.NewFilter(configManager),
		filter.AcceptRule,
	})
}
Example #2
0
// createStandardFilters creates the set of filters for a normal (non-system) chain
func createStandardFilters(configManager configtx.Manager) *filter.RuleSet {
	return filter.NewRuleSet([]filter.Rule{
		filter.EmptyRejectRule,
		configtx.NewFilter(configManager),
		filter.AcceptRule,
	})

}