forked from cerc-io/plugeth
Merge branch 'develop' of github.com-obscure:ethereum/eth-go into develop
This commit is contained in:
commit
5ec62a5153
@ -3,8 +3,20 @@ package ethutil
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"math/big"
|
"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
|
// The different number of units
|
||||||
var (
|
var (
|
||||||
Douglas = BigPow(10, 42)
|
Douglas = BigPow(10, 42)
|
||||||
|
Loading…
Reference in New Issue
Block a user