mirror of
https://github.com/kvazar-network/keva-stratum.git
synced 2025-03-13 06:21:28 +00:00
Change Diff1 init
This commit is contained in:
parent
b2f86ec70e
commit
9123fc771d
@ -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…
x
Reference in New Issue
Block a user