@ -52,7 +52,6 @@ type Proxy struct {
Debug bool `json:"debug"`
Stratum Stratum `json:"stratum"`
}
type Stratum struct {
@ -6,7 +6,7 @@ import (
"strconv"
"strings"
"github.com/yuriy0803/poolhash"
"github.com/ethereum/go-ethereum/common"
)
@ -42,9 +42,9 @@ type Session struct {
// Stratum
sync.Mutex
conn net.Conn
login string
lastErr error
func NewProxy(cfg *Config, backend *storage.RedisClient) *ProxyServer {
@ -2,7 +2,7 @@ package proxy
import (
"bufio"
"crypto/tls"
"encoding/json"
"errors"
"io"