()
| 21 | } |
| 22 | |
| 23 | func newTestSolution() *Solution { |
| 24 | nonce, _ := hexutil.DecodeUint64("0xacc04b3a085f4609") |
| 25 | return &Solution{ |
| 26 | Nonce: types.EncodeNonce(nonce), |
| 27 | Hash: common.HexToHash("0x958c07589d805f63393997ea0baca55a3101baa2c6616e3a5c8d51baf590d6ec"), |
| 28 | MixDigest: common.HexToHash("0x39fb1956275f9308fb7bec594108520e9e67d213cd1711874cf02d8450ea171e"), |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | func TestWorkPoolAcceptSolution(t *testing.T) { |
| 33 | w := newTestWork() |
no outgoing calls
no test coverage detected