JeffDeCola/jeffCoin

View on GitHub
blockchain/blockchain-interface.go

Summary

Maintainability
A
2 hrs
Test Coverage

Function RequestBlockchain has 69 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func RequestBlockchain(networkIP string, networkTCPPort string) error {

    s := "START  RequestBlockchain() - Requests the blockchain and the pendingBlock from a Network Node"
    log.Debug("BLOCKCHAIN:  I/F      " + s)

Severity: Minor
Found in blockchain/blockchain-interface.go - About 1 hr to fix

    Function RequestBlockchain has 5 return statements (exceeds 4 allowed).
    Open

    func RequestBlockchain(networkIP string, networkTCPPort string) error {
    
        s := "START  RequestBlockchain() - Requests the blockchain and the pendingBlock from a Network Node"
        log.Debug("BLOCKCHAIN:  I/F      " + s)
    
    
    Severity: Major
    Found in blockchain/blockchain-interface.go - About 35 mins to fix

      2: cannot find package "github.com/sirupsen/logrus" in any of:
      Open

          log "github.com/sirupsen/logrus"
      Severity: Minor
      Found in blockchain/blockchain-interface.go by govet

      There are no issues that match your filters.

      Category
      Status