Browse Source

Fix stratum init

pool
Sammy Libre 8 years ago
parent
commit
b6d96dc470
  1. 2
      go-pool/stratum/stratum.go
  2. 2
      main.go

2
go-pool/stratum/stratum.go

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

2
main.go

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

Loading…
Cancel
Save