mirror of
https://github.com/8lecramm/derohe-proxy.git
synced 2025-01-10 13:57:56 +00:00
miner info feature temporarily disabled
This commit is contained in:
parent
3ba55712a7
commit
efc773ca51
@ -79,7 +79,7 @@ func main() {
|
||||
time.Sleep(time.Second * 1)
|
||||
}
|
||||
go proxy.Start_client(proxy.Address)
|
||||
go proxy.SendUpdateToDaemon()
|
||||
//go proxy.SendUpdateToDaemon()
|
||||
|
||||
for {
|
||||
time.Sleep(time.Second * time.Duration(config.Log_intervall))
|
||||
|
@ -5,7 +5,6 @@ import (
|
||||
"crypto/elliptic"
|
||||
"crypto/rand"
|
||||
"crypto/x509"
|
||||
"encoding/json"
|
||||
"encoding/pem"
|
||||
"fmt"
|
||||
"math/big"
|
||||
@ -196,6 +195,7 @@ func newUpgrader() *websocket.Upgrader {
|
||||
client_list_mutex.Lock()
|
||||
defer client_list_mutex.Unlock()
|
||||
|
||||
/*
|
||||
var x MinerInfo_Params
|
||||
if json.Unmarshal(data, &x); len(x.Wallet_Address) > 0 {
|
||||
|
||||
@ -214,6 +214,7 @@ func newUpgrader() *websocket.Upgrader {
|
||||
// Update miners information
|
||||
return
|
||||
} else {
|
||||
*/
|
||||
SendToDaemon(data)
|
||||
if !config.Pool_mode {
|
||||
fmt.Printf("%v Submitting result from miner: %v, Wallet: %v\n", time.Now().Format(time.Stamp), c.RemoteAddr().String(), client_list[c].address.String())
|
||||
@ -221,7 +222,7 @@ func newUpgrader() *websocket.Upgrader {
|
||||
shares++
|
||||
fmt.Printf("%v Shares submitted: %d\n", time.Now().Format(time.Stamp), shares)
|
||||
}
|
||||
}
|
||||
//}
|
||||
})
|
||||
|
||||
u.OnClose(func(c *websocket.Conn, err error) {
|
||||
|
Loading…
Reference in New Issue
Block a user