diff options
author | obscuren <geffobscura@gmail.com> | 2015-01-08 23:37:06 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-01-08 23:37:06 +0800 |
commit | b25126a277da5253e4ce175dec5b68ccdf1b9b0f (patch) | |
tree | ea076157ad8304145228f2483ba3c955fa646120 /ethutil/path.go | |
parent | db4aaedcbdb409e17ea3de161e7b24a80ba0a58c (diff) | |
download | go-tangerine-b25126a277da5253e4ce175dec5b68ccdf1b9b0f.tar go-tangerine-b25126a277da5253e4ce175dec5b68ccdf1b9b0f.tar.gz go-tangerine-b25126a277da5253e4ce175dec5b68ccdf1b9b0f.tar.bz2 go-tangerine-b25126a277da5253e4ce175dec5b68ccdf1b9b0f.tar.lz go-tangerine-b25126a277da5253e4ce175dec5b68ccdf1b9b0f.tar.xz go-tangerine-b25126a277da5253e4ce175dec5b68ccdf1b9b0f.tar.zst go-tangerine-b25126a277da5253e4ce175dec5b68ccdf1b9b0f.zip |
Minor fixed and additions for block proc
* Path check length
* Genesis include TD
* Output TD on last block
Diffstat (limited to 'ethutil/path.go')
-rw-r--r-- | ethutil/path.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ethutil/path.go b/ethutil/path.go index f64e3849e..e545c8731 100644 --- a/ethutil/path.go +++ b/ethutil/path.go @@ -12,7 +12,7 @@ func ExpandHomePath(p string) (path string) { path = p // Check in case of paths like "/something/~/something/" - if path[:2] == "~/" { + if len(path) > 1 && path[:2] == "~/" { usr, _ := user.Current() dir := usr.HomeDir |