Browse Source

Change Diff1 init

pool
Sammy Libre 8 years ago
parent
commit
9123fc771d
  1. 9
      go-pool/util/util.go

9
go-pool/util/util.go

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

Loading…
Cancel
Save