Documentation
¶
Index ¶
Constants ¶
View Source
const TimeBetweenCalls = 5
TimeBetweenCalls is number of seconds a client needs to wait before being able to request new work
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PoolAPI ¶
type PoolAPI struct {
//Fee is the poolfee in 0.01%
Fee int
ShareChain *sharechain.ShareChain
}
PoolAPI implements the http handlers
func (*PoolAPI) FeeHandler ¶
func (pa *PoolAPI) FeeHandler(w http.ResponseWriter, r *http.Request)
FeeHandler writes the fee applied by the pool
func (*PoolAPI) GetWorkHandler ¶
func (pa *PoolAPI) GetWorkHandler(w http.ResponseWriter, r *http.Request)
GetWorkHandler returns a header to the miners to work on
func (*PoolAPI) SubmitHeaderHandler ¶
func (pa *PoolAPI) SubmitHeaderHandler(w http.ResponseWriter, r *http.Request)
SubmitHeaderHandler is called by the miners to submit their shares A 204 is returned when successful
Click to show internal directories.
Click to hide internal directories.