mirror of
https://github.com/btcsuite/btcd.git
synced 2024-11-19 18:00:11 +01:00
Make golint happier.
This commit is contained in:
parent
67d570e660
commit
7448f9555c
@ -943,9 +943,9 @@ type ConnConfig struct {
|
||||
HttpPostMode bool
|
||||
}
|
||||
|
||||
// newHttpClient returns a new http client that is configured according to the
|
||||
// newHTTPClient returns a new http client that is configured according to the
|
||||
// proxy and TLS settings in the associated connection configuration.
|
||||
func newHttpClient(config *ConnConfig) (*http.Client, error) {
|
||||
func newHTTPClient(config *ConnConfig) (*http.Client, error) {
|
||||
// Set proxy function if there is a proxy configured.
|
||||
var proxyFunc func(*http.Request) (*url.URL, error)
|
||||
if config.Proxy != "" {
|
||||
@ -1051,7 +1051,7 @@ func New(config *ConnConfig, ntfnHandlers *NotificationHandlers) (*Client, error
|
||||
ntfnHandlers = nil
|
||||
|
||||
var err error
|
||||
httpClient, err = newHttpClient(config)
|
||||
httpClient, err = newHTTPClient(config)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
@ -44,10 +44,10 @@ const (
|
||||
// for outputs.
|
||||
SigHashNoneAnyoneCanPay SigHashType = "NONE|ANYONECANPAY"
|
||||
|
||||
// SigHashAllAnyoneCanPay indicates that signer does not care where the
|
||||
// other inputs to the transaction come from, so it allows other people
|
||||
// to add inputs. In addition, it uses the SigHashSingle signing method
|
||||
// for outputs.
|
||||
// SigHashSingleAnyoneCanPay indicates that signer does not care where
|
||||
// the other inputs to the transaction come from, so it allows other
|
||||
// people to add inputs. In addition, it uses the SigHashSingle signing
|
||||
// method for outputs.
|
||||
SigHashSingleAnyoneCanPay SigHashType = "SINGLE|ANYONECANPAY"
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user