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

Interface Work

types.go:110–115  ·  view source on GitHub ↗

Work represents SmartPool work that miner needs to solve to have valid shares. Work is easier (has smaller difficulty) than actual Ethereum work that the miner can get from the network.

Source from the content-addressed store, hash-verified

108// shares. Work is easier (has smaller difficulty) than actual Ethereum
109// work that the miner can get from the network.
110type Work interface {
111 ID() string
112 // AcceptSolution takes solution to construct and return a Share representing
113 // the solution that came from miner.
114 AcceptSolution(sol Solution) Share
115}
116
117// Solution represents a solution for a work
118type Solution interface {

Implementers 2

testWorkprotocol/test_work.go
Workethereum/work.go

Calls

no outgoing calls

Tested by

no test coverage detected