mirror of
https://github.com/FlipsideCrypto/dcrd.git
synced 2026-02-06 10:56:47 +00:00
multi: Address some golint complaints.
This commit is contained in:
parent
2606af87ec
commit
bd3a416cae
@ -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
|
||||
|
||||
@ -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 (
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
@ -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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user