Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(common): fix some function names in comment #5052

Merged
merged 1 commit into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion common/channelconfig/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func createCfgBlockWithSupportedCapabilities(t *testing.T) *cb.Block {
return configBlock
}

// createCfgBlockWithUnSupportedCapabilities will create a config block that contains mismatched capabilities and should be rejected by the peer
// createCfgBlockWithUnsupportedCapabilities will create a config block that contains mismatched capabilities and should be rejected by the peer
func createCfgBlockWithUnsupportedCapabilities(t *testing.T) *cb.Block {
// Create a config
config := &cb.Config{
Expand Down
4 changes: 2 additions & 2 deletions common/crypto/tlsgen/ca.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,14 @@ func (c *ca) CertBytes() []byte {
return c.caCert.Cert
}

// newClientCertKeyPair returns a certificate and private key pair and nil,
// NewClientCertKeyPair returns a certificate and private key pair and nil,
// or nil, error in case of failure
// The certificate is signed by the CA and is used as a client TLS certificate
func (c *ca) NewClientCertKeyPair() (*CertKeyPair, error) {
return newCertKeyPair(false, false, c.caCert.Signer, c.caCert.TLSCert)
}

// newServerCertKeyPair returns a certificate and private key pair and nil,
// NewServerCertKeyPair returns a certificate and private key pair and nil,
// or nil, error in case of failure
// The certificate is signed by the CA and is used as a server TLS certificate
func (c *ca) NewServerCertKeyPair(hosts ...string) (*CertKeyPair, error) {
Expand Down
2 changes: 1 addition & 1 deletion common/policies/implicitmeta_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func ImplicitMetaPolicyWithSubPolicy(subPolicyName string, rule cb.ImplicitMetaP
}
}

// TemplateImplicitMetaPolicy creates a policy at the specified path with the given policyName and subPolicyName
// TemplateImplicitMetaPolicyWithSubPolicy creates a policy at the specified path with the given policyName and subPolicyName
func TemplateImplicitMetaPolicyWithSubPolicy(path []string, policyName string, subPolicyName string, rule cb.ImplicitMetaPolicy_Rule) *cb.ConfigGroup {
root := protoutil.NewConfigGroup()
group := root
Expand Down