diff --git a/blockchain/stake/staketx.go b/blockchain/stake/staketx.go index 1e3f722f..98b2ae9b 100644 --- a/blockchain/stake/staketx.go +++ b/blockchain/stake/staketx.go @@ -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 diff --git a/dcrec/common.go b/dcrec/common.go index 224bc77a..4c1e7cd9 100644 --- a/dcrec/common.go +++ b/dcrec/common.go @@ -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 ( diff --git a/dcrjson/walletsvrcmds.go b/dcrjson/walletsvrcmds.go index e6016d7e..f86aec3d 100644 --- a/dcrjson/walletsvrcmds.go +++ b/dcrjson/walletsvrcmds.go @@ -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 } diff --git a/rpctest/node.go b/rpctest/node.go index 9641cc1f..88ecbf96 100644 --- a/rpctest/node.go +++ b/rpctest/node.go @@ -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.