From ce0e5a708712081151a98c191a8fabb7f8eac190 Mon Sep 17 00:00:00 2001 From: yuriy0803 Date: Sun, 14 Aug 2022 13:39:52 +0200 Subject: [PATCH] update --- proxy/config.go | 8 -------- proxy/miner.go | 2 +- proxy/proto.go | 6 ------ 3 files changed, 1 insertion(+), 15 deletions(-) diff --git a/proxy/config.go b/proxy/config.go index 4f03a41..6e32ac1 100644 --- a/proxy/config.go +++ b/proxy/config.go @@ -53,7 +53,6 @@ type Proxy struct { Stratum Stratum `json:"stratum"` - StratumNiceHash StratumNiceHash `json:"stratum_nice_hash"` } type Stratum struct { @@ -63,13 +62,6 @@ type Stratum struct { MaxConn int `json:"maxConn"` } -type StratumNiceHash struct { - Enabled bool `json:"enabled"` - Listen string `json:"listen"` - Timeout string `json:"timeout"` - MaxConn int `json:"maxConn"` -} - type Upstream struct { Name string `json:"name"` Url string `json:"url"` diff --git a/proxy/miner.go b/proxy/miner.go index 936e2f1..45c7a46 100644 --- a/proxy/miner.go +++ b/proxy/miner.go @@ -6,7 +6,7 @@ import ( "strconv" "strings" - "github.com/etclabscore/go-etchash" + "github.com/yuriy0803/poolhash" "github.com/ethereum/go-ethereum/common" ) diff --git a/proxy/proto.go b/proxy/proto.go index ae3b4ec..16de943 100644 --- a/proxy/proto.go +++ b/proxy/proto.go @@ -8,12 +8,6 @@ type JSONRpcReq struct { Params json.RawMessage `json:"params"` } -type JSONRpcReqNH struct { - Id interface{} `json:"id"` - Method string `json:"method"` - Params interface{} `json:"params"` -} - type StratumReq struct { JSONRpcReq Worker string `json:"worker"`