sentinel/pools/pool.go
2021-03-07 23:54:50 -05:00

18 lines
409 B
Go

package pools
import (
"time"
"github.com/lbryio/lbry.go/v2/extras/stop"
)
// CheckPeriod time between checking on a pool
var CheckPeriod = 60
var checkPeriod = time.Duration(CheckPeriod) * time.Second
// Monitor kicks off the monitors for the different pools for mining LBRY
func Monitor(parent *stop.Group) {
stopper := stop.New(parent)
go monitorCoinmine(stopper)
go monitorMiningDutch(stopper)
}