Skip to content

Commit

Permalink
multi: Address some golint complaints.
Browse files Browse the repository at this point in the history
  • Loading branch information
davecgh committed Oct 11, 2018
1 parent 2606af8 commit bd3a416
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 13 deletions.
2 changes: 1 addition & 1 deletion blockchain/stake/staketx.go
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ func CheckSStx(tx *wire.MsgTx) error {
return nil
}

// IsSSx returns whether or not a transaction is a stake submission transaction.
// IsSStx returns whether or not a transaction is a stake submission transaction.
// These are also known as tickets.
func IsSStx(tx *wire.MsgTx) bool {
return CheckSStx(tx) == nil
Expand Down
2 changes: 2 additions & 0 deletions dcrec/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

package dcrec

// SignatureType defines a specific cryptographic signature and curve pair for
// use in transaction scripts and addresses.
type SignatureType int

const (
Expand Down
6 changes: 3 additions & 3 deletions dcrjson/walletsvrcmds.go
Original file line number Diff line number Diff line change
Expand Up @@ -348,12 +348,12 @@ func NewGetBalanceCmd(account *string, minConf *int) *GetBalanceCmd {
}
}

// GetContratHashCmd defines the getcontracthash JSON-RPC command.
// GetContractHashCmd defines the getcontracthash JSON-RPC command.
type GetContractHashCmd struct {
FilePath []string
}

// NewGetBalanceCmd returns a new instance which can be used to issue a
// NewGetContractHashCmd returns a new instance which can be used to issue a
// getcontracthash JSON-RPC command.
func NewGetContractHashCmd(filepaths []string) *GetContractHashCmd {
return &GetContractHashCmd{FilePath: filepaths}
Expand Down Expand Up @@ -401,7 +401,7 @@ func NewGetNewAddressCmd(account *string, gapPolicy *string) *GetNewAddressCmd {
}
}

// GetPayToContractHashCmd defines the getpaytocontracthash JSON-RPC command.
// GetPayToContractAddressCmd defines the getpaytocontracthash JSON-RPC command.
type GetPayToContractAddressCmd struct {
FilePath []string
}
Expand Down
11 changes: 2 additions & 9 deletions rpctest/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,7 @@ func (n *node) start() error {
return err
}

if err := pid.Close(); err != nil {
return err
}

return nil
return pid.Close()
}

// stop interrupts the running dcrd process process, and waits until it exits
Expand Down Expand Up @@ -238,10 +234,7 @@ func (n *node) shutdown() error {
if err := n.stop(); err != nil {
return err
}
if err := n.cleanup(); err != nil {
return err
}
return nil
return n.cleanup()
}

// genCertPair generates a key/cert pair to the paths provided.
Expand Down

0 comments on commit bd3a416

Please sign in to comment.