Commit fa729a0c authored by obscuren's avatar obscuren

miner: go fmt

parent 5caf1aa1
......@@ -59,15 +59,14 @@ out:
func (a *RemoteAgent) GetWork() [3]string {
var res [3]string
// XXX Wait here until work != nil ?
if a.work != nil {
a.currentWork = a.work
res[0] = a.work.HashNoNonce().Hex()
seedHash, _ := ethash.GetSeedHash(a.currentWork.NumberU64())
res[1] = common.Bytes2Hex(seedHash)
n := new(big.Int)
n.SetInt64(1)
// Calculate the "target" to be returned to the external miner
n := big.NewInt(1)
n.Lsh(n, 255)
n.Div(n, a.work.Difficulty())
n.Lsh(n, 1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment