From 7ec063aebceb78e59b3d2d4d54a802b9cb26f8a8 Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Sat, 12 Apr 2014 12:02:54 -0500 Subject: [PATCH] Fix issues found by golint. --- address.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/address.go b/address.go index e9bcc2b..c194d74 100644 --- a/address.go +++ b/address.go @@ -468,7 +468,7 @@ func (a *AddressPubKey) String() string { return hex.EncodeToString(a.serialize()) } -// PubKeyFormat returns the format (uncompressed, compressed, etc) of the +// Format returns the format (uncompressed, compressed, etc) of the // pay-to-pubkey address. func (a *AddressPubKey) Format() PubKeyFormat { return a.pubKeyFormat @@ -520,7 +520,7 @@ func EncodePrivateKey(privKey []byte, net btcwire.BitcoinNet, compressed bool) ( // privKey, plus an optional byte (0x01) if copressed, plus 4 bytes of checksum. encodeLen := 37 if compressed { - encodeLen += 1 + encodeLen++ } a := make([]byte, encodeLen, encodeLen) a[0] = netID