示例#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,
	})
}
示例#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,
	})

}