aergoio/aergo

View on GitHub
p2p/p2putil/certificate.go

Summary

Maintainability
A
1 hr
Test Coverage
C
75%

Function CheckAndGetV1 has 11 return statements (exceeds 4 allowed).
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)
Severity: Major
Found in p2p/p2putil/certificate.go - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status