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

Loading…
Cancel
Save