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. 2
      proxy/stratum.go

1
proxy/config.go

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

2
proxy/miner.go

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

6
proxy/proxy.go

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

2
proxy/stratum.go

@ -2,7 +2,7 @@ package proxy
import ( import (
"bufio" "bufio"
"crypto/tls" "crypto/tls"
"encoding/json" "encoding/json"
"errors" "errors"
"io" "io"

Loading…
Cancel
Save