From ebbc4655d0d6e776109680e1add014e79316aba3 Mon Sep 17 00:00:00 2001 From: mrz1836 Date: Tue, 27 Oct 2020 10:19:31 -0400 Subject: [PATCH] Removed logs --- hd_key_test.go | 4 ++-- pubkey.go | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/hd_key_test.go b/hd_key_test.go index 1f37083..7b44471 100644 --- a/hd_key_test.go +++ b/hd_key_test.go @@ -3,7 +3,6 @@ package bitcoin import ( "encoding/hex" "fmt" - "log" "testing" "github.com/bitcoinsv/bsvd/bsvec" @@ -1056,7 +1055,8 @@ func ExampleGetHDKeyFromExtendedPublicKey() { // Convert to a HD key key, err := GetHDKeyFromExtendedPublicKey(xPub) if err != nil { - log.Fatalf("error occurred: %s", err.Error()) + fmt.Printf("error occurred: %s", err.Error()) + return } fmt.Printf("key: %s", key.String()) diff --git a/pubkey.go b/pubkey.go index 059260a..a36960f 100644 --- a/pubkey.go +++ b/pubkey.go @@ -3,7 +3,6 @@ package bitcoin import ( "encoding/hex" "errors" - "log" "github.com/bitcoinsv/bsvd/bsvec" ) @@ -34,7 +33,6 @@ func PubKeyFromString(pubKey string) (*bsvec.PublicKey, error) { // Decode from hex string decoded, err := hex.DecodeString(pubKey) if err != nil { - log.Println("log", err.Error()) return nil, err }