Browse Source

update

master
yuriy0803 3 years ago
parent
commit
307882fa87
  1. 1
      proxy/config.go
  2. 2
      proxy/miner.go
  3. 6
      proxy/proxy.go
  4. 4
      proxy/stratum.go

1
proxy/config.go

@ -52,7 +52,6 @@ type Proxy struct {
Debug bool `json:"debug"`
Stratum Stratum `json:"stratum"`
}
type Stratum struct {

2
proxy/miner.go

@ -6,7 +6,7 @@ import (
"strconv"
"strings"
"github.com/yuriy0803/poolhash"
"github.com/yuriy0803/poolhash"
"github.com/ethereum/go-ethereum/common"
)

6
proxy/proxy.go

@ -42,9 +42,9 @@ type Session struct {
// Stratum
sync.Mutex
conn net.Conn
login string
lastErr error
conn net.Conn
login string
lastErr error
}
func NewProxy(cfg *Config, backend *storage.RedisClient) *ProxyServer {

4
proxy/stratum.go

@ -2,7 +2,7 @@ package proxy
import (
"bufio"
"crypto/tls"
"crypto/tls"
"encoding/json"
"errors"
"io"
@ -37,7 +37,7 @@ func (s *ProxyServer) ListenTCP() {
conn.(*net.TCPConn).SetKeepAlive(true)
}
}
if err != nil {
log.Fatalf("Error: %v", err)
}

Loading…
Cancel
Save