MCPcopy Create free account
hub / github.com/SmartPool/smartpool-client / newTestSolution

Function newTestSolution

ethereum/work_pool_test.go:23–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21}
22
23func 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
32func TestWorkPoolAcceptSolution(t *testing.T) {
33 w := newTestWork()

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected