From dcf2994905e3067d9c81b6dd21ae499d75cf7390 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Mon, 11 Nov 2013 11:52:59 -0600 Subject: [PATCH] Add some missed imports in last commit. --- util/findcheckpoint/config.go | 1 + util/showblock/showblock.go | 19 +------------------ 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/util/findcheckpoint/config.go b/util/findcheckpoint/config.go index c4bd8c25..08772299 100644 --- a/util/findcheckpoint/config.go +++ b/util/findcheckpoint/config.go @@ -9,6 +9,7 @@ import ( "github.com/conformal/btcdb" _ "github.com/conformal/btcdb/ldb" _ "github.com/conformal/btcdb/sqlite3" + "github.com/conformal/btcutil" "github.com/conformal/btcwire" "github.com/conformal/go-flags" "os" diff --git a/util/showblock/showblock.go b/util/showblock/showblock.go index b6b64543..61551513 100644 --- a/util/showblock/showblock.go +++ b/util/showblock/showblock.go @@ -11,6 +11,7 @@ import ( "github.com/conformal/btcdb" _ "github.com/conformal/btcdb/ldb" _ "github.com/conformal/btcdb/sqlite3" + "github.com/conformal/btcutil" "github.com/conformal/btcwire" "github.com/conformal/go-flags" "github.com/conformal/seelog" @@ -274,21 +275,3 @@ func parsesha(argstr string) (argtype int, height int64, psha *btcwire.ShaHash, psha = &sha return } - -// btcdHomeDir returns an OS appropriate home directory for btcd. -func btcdHomeDir() string { - // Search for Windows APPDATA first. This won't exist on POSIX OSes. - appData := os.Getenv("APPDATA") - if appData != "" { - return filepath.Join(appData, "btcd") - } - - // Fall back to standard HOME directory that works for most POSIX OSes. - home := os.Getenv("HOME") - if home != "" { - return filepath.Join(home, ".btcd") - } - - // In the worst case, use the current directory. - return "." -}