p2p/p2putil/certificate.go
Function CheckAndGetV1
has 11 return statements (exceeds 4 allowed). Open
Open
func CheckAndGetV1(cert *types.AgentCertificate) (*p2pcommon.AgentCertificateV1, error) {
var err error
wrap := &p2pcommon.AgentCertificateV1{Version: cert.CertVersion}
wrap.BPID, err = peer.IDFromBytes(cert.BPID)