Change Diff1 init

This commit is contained in:
Sammy Libre 2016-12-08 02:57:24 +05:00
parent b2f86ec70e
commit 9123fc771d

View File

@ -9,11 +9,12 @@ import (
"../../cnutil" "../../cnutil"
) )
var Diff1 *big.Int var Diff1 = StringToBig("0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF")
func init() { func StringToBig(h string) *big.Int {
Diff1 = new(big.Int) n := new(big.Int)
Diff1.SetString("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF", 16) n.SetString(h, 0)
return n
} }
func MakeTimestamp() int64 { func MakeTimestamp() int64 {