Fix stratum init

This commit is contained in:
Sammy Libre 2016-12-07 12:32:37 +05:00
parent c0eb91d33a
commit b6d96dc470
2 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ func NewStratum(cfg *pool.Config) *StratumServer {
checkTimer := time.NewTimer(checkIntv)
// Init block template
stratum.refreshBlockTemplate(false)
go stratum.refreshBlockTemplate(false)
go func() {
for {

View File

@ -32,7 +32,7 @@ func startStratum() {
s := stratum.NewStratum(&cfg)
if cfg.Frontend.Enabled {
startFrontend(&cfg, s)
go startFrontend(&cfg, s)
}
s.Listen()
}