|
|
@ -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 { |
|
|
|