(sol smartpool.Solution)
| 32 | } |
| 33 | |
| 34 | func (w *Work) AcceptSolution(sol smartpool.Solution) smartpool.Share { |
| 35 | solution := sol.(*Solution) |
| 36 | s := &Share{ |
| 37 | blockHeader: w.blockHeader, |
| 38 | nonce: solution.Nonce, |
| 39 | mixDigest: solution.MixDigest, |
| 40 | shareDifficulty: w.ShareDifficulty(), |
| 41 | } |
| 42 | s.SolutionState = ethash.Instance.SolutionState(s, w.ShareDifficulty()) |
| 43 | return s |
| 44 | } |
| 45 | |
| 46 | func (w *Work) PoWHash() common.Hash { |
| 47 | return common.HexToHash(w.powHash) |
nothing calls this directly
no test coverage detected