multi: Address some golint complaints.

This commit is contained in:
Dave Collins 2018-10-10 18:28:25 -05:00
parent 2606af87ec
commit bd3a416cae
No known key found for this signature in database
GPG Key ID: B8904D9D9C93D1F2
4 changed files with 8 additions and 13 deletions

View File

@ -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

View File

@ -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 (

View File

@ -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}
@ -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
}

View File

@ -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
@ -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.