Merge branch 'develop' of github.com-obscure:ethereum/eth-go into develop

This commit is contained in:
obscuren 2014-07-15 00:25:57 +02:00
commit 5ec62a5153
1 changed files with 12 additions and 0 deletions

View File

@ -3,8 +3,20 @@ package ethutil
import (
"fmt"
"math/big"
"runtime"
)
func IsWindows() bool {
return runtime.GOOS == "windows"
}
func WindonizePath(path string) string {
if string(path[0]) == "/" && IsWindows() {
path = path[1:]
}
return path
}
// The different number of units
var (
Douglas = BigPow(10, 42)