Giter VIP home page Giter VIP logo

xmrig2xdag's Introduction

XMRig2XDAG

XMRig2XDAG is a stratum proxy for Monero (XMR) miners mining XDAG coins.

XMRig2XDAG is translator between XMR stratum protocol and XDAG mining protocol. Written in Go.

XMRig can connect to XDAG mining pool through XMRig2XDAG proxy.

XDAG and XMR are using the same mining algorithm: RandomX.

XMRig2XDAG is Working with XMRig fork https://github.com/swordlet/xmrig/tree/xdag.

Build

under server folder

$ go mod tidy
$ go build

Guide

start up command line and configure file

start up

start up xmrig2xdag proxy and xmrig miner

proxy

./xmrig2xdag -c config.json

miner

./xmrig -c config.json (using administrator or root)

config file

xmrig2xdag proxy and xmrig config file

xmrig2xdag config json file

{
  "strport": 3232,                // port for xmrig to connect
  "url": "equal.xdag.org:13656",  // XDAG mining pool address and port
  "tls": false,                   // using SSL
  "debug": false,                 //  printing debug info
  "testnet": false,               // using test net
  "socks5": ""                    // SOCKS5 proxy address:port 
}

xmrig config json file

"pools": [
  {
    "algo": "rx/xdag",                     // mining XDAG
    "coin": null,
    "url": "stratum+tcp://127.0.0.1:3232", // xmrig2xdag address and port
    "user": "YOUR_WALLET_ADDRESS",         // your XDAG wallet address
    "pass": "your_miner_name",		   // naming your miner
    .....
  }
]

Arm or Android Mobile

CPU must above Snpadragon 810 for Android

install termux on Android and install scrcpy on PC for better interaction

in Arm computer or Android Mobile command line:

apt update && apt upgrade &&

apt install -y git wget proot build-essential cmake libmicrohttpd &&

git clone -b xdag https://github.com/swordlet/xmrig --depth 1 &&

mkdir xmrig/build &&

cd xmrig/build &&

cmake -DWITH_HWLOC=OFF .. &&

make -j10

edit config.json following the guide

./xmrig -c config.json

connect XDAG pool through xmr2xdag proxy running in local network

Acknowledgement

https://github.com/xmrig/xmrig

https://github.com/xmrig/xmrig-proxy

https://github.com/trey-jones/stratum

https://github.com/trey-jones/xmrwasp

xmrig2xdag's People

Contributors

swordlet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

xmrig2xdag's Issues

unable to compile: xdag/../../clib/libxdag_crypto_Linux.a: error adding symbols

hi,
i am unable to compile xmrig2xdag

$go version
go version go1.17 linux/amd64

$ ld --version
GNU ld (GNU Binutils for Ubuntu) 2.30
Copyright (C) 2018 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty

as --version
GNU assembler (GNU Binutils for Ubuntu) 2.30
Copyright (C) 2018 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `x86_64-linux-gnu'.

gcc --version
gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

git clone https://github.com/XDagger/xmrig2xdag.git
go mod init github.com/XDagger/xmrig2xdag
cd xmrig2xdag/server
go build main.go

could you help please ?

it's related with the system.
i am able to compile in another system

please close the ticket

VERSION="1.17" # go version
ARCH="amd64" # go archicture
curl -O -L "https://golang.org/dl/go${VERSION}.linux-${ARCH}.tar.gz"
tar -xf "go${VERSION}.linux-${ARCH}.tar.gz"
rm "go${VERSION}.linux-${ARCH}.tar.gz"
sudo chown -R root:root ./go
sudo mv -v go /usr/local
# add on .bashrc GOPATH
#nano ~/.bashrc
#export GOPATH=$HOME/go
#export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
git clone https://github.com/XDagger/xmrig2xdag.git
go mod init github.com/XDagger/xmrig2xdag
cd xmrig2xdag/server
go build main.go

SRBMiner connection error

I can't setup SRBMiner to work with xmrig2xdag. I use that command line

SRBMiner-MULTI.exe --algorithm xdag --pool ******:3232 --wallet G9H9ENvaGrmq3wPU6qt7uEjTzkhZnY2Xq --worker srbminer --cpu-threads 18 --disable-gpu

Receive these tow errors:
Socket error: 10054
Pool unexpectedly close the connection

Xmrig2xdag config is:
{
"strport": 3232,
"url": "pool.xdag.org:13656",
"log": "proxy.log",
"tls": false,
"debug": false,
"testnet": false,
"socks5": "",
"ratelimit": 10,
"try_pool_times": 3,
"try_delay_seconds": 10,
"exit_on_pool_down": false
}

Any idea why is not working?

No xmrig2xdag generated

hello all,

I followed the instructions to do the build under the clib and server folders, but I do not have a binary for xmrig2xdag and cannot find where to download it.

Is the build supposed to generate the binary?

Exceptions occur every period of time

github.com/swordlet/xmrig2xdag/proxy.(*Proxy).Remove(...)
J:/xmrig2xdag/server/proxy/proxy.go:447
github.com/swordlet/xmrig2xdag/tcp.SpawnWorker({0x10c18f8, 0xc00028c6d8})
J:/xmrig2xdag/server/tcp/worker.go:46 +0x386
created by github.com/swordlet/xmrig2xdag/tcp.StartServer
J:/xmrig2xdag/server/tcp/server.go:43 +0x527

goroutine 150101 [chan receive]:
github.com/swordlet/xmrig2xdag/proxy.(*Proxy).shutdown(0xc0000cc600)
J:/xmrig2xdag/server/proxy/proxy.go:325 +0xc6
github.com/swordlet/xmrig2xdag/proxy.(*Proxy).Run.func1()
J:/xmrig2xdag/server/proxy/proxy.go:146 +0x1d
github.com/swordlet/xmrig2xdag/proxy.(*Proxy).Run(0xc0000cc600, {0xc0002a8b60, 0xc})
J:/xmrig2xdag/server/proxy/proxy.go:164 +0x3f0
created by github.com/swordlet/xmrig2xdag/proxy.(*Mining).Login
J:/xmrig2xdag/server/proxy/mining.go:83 +0x2c5

goroutine 110921 [chan send]:
github.com/swordlet/xmrig2xdag/proxy.(*Proxy).Remove(...)
J:/xmrig2xdag/server/proxy/proxy.go:447
github.com/swordlet/xmrig2xdag/tcp.SpawnWorker({0x10c18f8, 0xc0004863f0})
J:/xmrig2xdag/server/tcp/worker.go:46 +0x386
created by github.com/swordlet/xmrig2xdag/tcp.StartServer
J:/xmrig2xdag/server/tcp/server.go:43 +0x527

goroutine 137704 [chan receive]:
github.com/swordlet/xmrig2xdag/proxy.(*Proxy).shutdown(0xc000326300)
J:/xmrig2xdag/server/proxy/proxy.go:325 +0xc6
github.com/swordlet/xmrig2xdag/proxy.(*Proxy).Run.func1()
J:/xmrig2xdag/server/proxy/proxy.go:146 +0x1d
github.com/swordlet/xmrig2xdag/proxy.(*Proxy).Run(0xc000326300, {0xc00059a240, 0xd})
J:/xmrig2xdag/server/proxy/proxy.go:164 +0x3f0
created by github.com/swordlet/xmrig2xdag/proxy.(*Mining).Login
J:/xmrig2xdag/server/proxy/mining.go:83 +0x2c5

goroutine 110911 [chan receive]:
github.com/swordlet/xmrig2xdag/proxy.(*Proxy).shutdown(0xc00058d080)
J:/xmrig2xdag/server/proxy/proxy.go:325 +0xc6
github.com/swordlet/xmrig2xdag/proxy.(*Proxy).Run.func1()
J:/xmrig2xdag/server/proxy/proxy.go:146 +0x1d
github.com/swordlet/xmrig2xdag/proxy.(*Proxy).Run(0xc00058d080, {0xc000314e90, 0xd})
J:/xmrig2xdag/server/proxy/proxy.go:164 +0x3f0
created by github.com/swordlet/xmrig2xdag/proxy.(*Mining).Login
J:/xmrig2xdag/server/proxy/mining.go:83 +0x2c5

goroutine 110828 [select, 24 minutes]:
github.com/swordlet/xmrig2xdag/xdag.(*Connection).StartWriter(0xc00024bce0)
J:/xmrig2xdag/server/xdag/connect.go:48 +0x1c6
created by github.com/swordlet/xmrig2xdag/xdag.(*Connection).Start
J:/xmrig2xdag/server/xdag/connect.go:99 +0xe7

goroutine 110827 [chan send, 23 minutes]:
github.com/swordlet/xmrig2xdag/xdag.(*Connection).StartReader(0xc00024bce0)
J:/xmrig2xdag/server/xdag/connect.go:88 +0x19a
created by github.com/swordlet/xmrig2xdag/xdag.(*Connection).Start
J:/xmrig2xdag/server/xdag/connect.go:97 +0xa5

goroutine 110896 [chan send, 41 minutes]:
github.com/swordlet/xmrig2xdag/xdag.(*Connection).StartReader(0xc0000c99d0)
J:/xmrig2xdag/server/xdag/connect.go:88 +0x19a
created by github.com/swordlet/xmrig2xdag/xdag.(*Connection).Start
J:/xmrig2xdag/server/xdag/connect.go:97 +0xa5

goroutine 110897 [select, 42 minutes]:
github.com/swordlet/xmrig2xdag/xdag.(*Connection).StartWriter(0xc0000c99d0)
J:/xmrig2xdag/server/xdag/connect.go:48 +0x1c6
created by github.com/swordlet/xmrig2xdag/xdag.(*Connection).Start
J:/xmrig2xdag/server/xdag/connect.go:99 +0xe7

goroutine 110948 [chan receive]:
github.com/swordlet/xmrig2xdag/proxy.(*Proxy).shutdown(0xc00024d380)
J:/xmrig2xdag/server/proxy/proxy.go:325 +0xc6
github.com/swordlet/xmrig2xdag/proxy.(*Proxy).Run.func1()
J:/xmrig2xdag/server/proxy/proxy.go:146 +0x1d
github.com/swordlet/xmrig2xdag/proxy.(*Proxy).Run(0xc00024d380, {0xc00091f480, 0xa})
J:/xmrig2xdag/server/proxy/proxy.go:164 +0x3f0
created by github.com/swordlet/xmrig2xdag/proxy.(*Mining).Login
J:/xmrig2xdag/server/proxy/mining.go:83 +0x2c5

goroutine 130654 [chan send]:
github.com/swordlet/xmrig2xdag/proxy.(*Proxy).Remove(...)
J:/xmrig2xdag/server/proxy/proxy.go:447
github.com/swordlet/xmrig2xdag/tcp.SpawnWorker({0x10c18f8, 0xc00028c870})
J:/xmrig2xdag/server/tcp/worker.go:46 +0x386
created by github.com/swordlet/xmrig2xdag/tcp.StartServer
J:/xmrig2xdag/server/tcp/server.go:43 +0x527

goroutine 128834 [chan send]:
github.com/swordlet/xmrig2xdag/proxy.(*Proxy).Remove(...)
J:/xmrig2xdag/server/proxy/proxy.go:447
github.com/swordlet/xmrig2xdag/tcp.SpawnWorker({0x10c18f8, 0xc000208e98})
J:/xmrig2xdag/server/tcp/worker.go:46 +0x386
created by github.com/swordlet/xmrig2xdag/tcp.StartServer
J:/xmrig2xdag/server/tcp/server.go:43 +0x527

goroutine 155577 [chan receive]:
github.com/swordlet/xmrig2xdag/proxy.(*Proxy).shutdown(0xc000162d80)
J:/xmrig2xdag/server/proxy/proxy.go:325 +0xc6
github.com/swordlet/xmrig2xdag/proxy.(*Proxy).Run.func1()
J:/xmrig2xdag/server/proxy/proxy.go:146 +0x1d
github.com/swordlet/xmrig2xdag/proxy.(*Proxy).Run(0xc000162d80, {0xc000772ab0, 0xc})
J:/xmrig2xdag/server/proxy/proxy.go:164 +0x3f0
created by github.com/swordlet/xmrig2xdag/proxy.(*Mining).Login
J:/xmrig2xdag/server/proxy/mining.go:83 +0x2c5

goroutine 164826 [select, 9 minutes]:
github.com/swordlet/xmrig2xdag/xdag.(*Connection).StartWriter(0xc000298930)
J:/xmrig2xdag/server/xdag/connect.go:48 +0x1c6
created by github.com/swordlet/xmrig2xdag/xdag.(*Connection).Start
J:/xmrig2xdag/server/xdag/connect.go:99 +0xe7

goroutine 164825 [chan send, 9 minutes]:
github.com/swordlet/xmrig2xdag/xdag.(*Connection).StartReader(0xc000298930)
J:/xmrig2xdag/server/xdag/connect.go:88 +0x19a
created by github.com/swordlet/xmrig2xdag/xdag.(*Connection).Start
J:/xmrig2xdag/server/xdag/connect.go:97 +0xa5

goroutine 134211 [chan send]:
github.com/swordlet/xmrig2xdag/proxy.(*Proxy).Remove(...)
J:/xmrig2xdag/server/proxy/proxy.go:447
github.com/swordlet/xmrig2xdag/tcp.SpawnWorker({0x10c18f8, 0xc000208eb0})
J:/xmrig2xdag/server/tcp/worker.go:46 +0x386
created by github.com/swordlet/xmrig2xdag/tcp.StartServer
J:/xmrig2xdag/server/tcp/server.go:43 +0x527

goroutine 134227 [semacquire]:
sync.runtime_SemacquireMutex(0xc000dd9d08, 0x65, 0xd06f53)
C:/Program Files/Go/src/runtime/sema.go:71 +0x25
sync.(*Mutex).lockSlow(0xc00004e2d0)
C:/Program Files/Go/src/sync/mutex.go:138 +0x165
sync.(*Mutex).Lock(...)
C:/Program Files/Go/src/sync/mutex.go:81
log.(*Logger).Output(0xc00004e2d0, 0x14, {0xc000198e10, 0x15})
C:/Program Files/Go/src/log/log.go:165 +0x9c
log.(*Logger).Printf(0xc000051560, {0x1047f93, 0xc0009078c0}, {0xc000dd9e78, 0xc000338968, 0xc000dd9e20})
C:/Program Files/Go/src/log/log.go:191 +0x4c
github.com/swordlet/xmrig2xdag/proxy.(*Proxy).shutdown(0xc000162780)
J:/xmrig2xdag/server/proxy/proxy.go:315 +0x7c
github.com/swordlet/xmrig2xdag/proxy.(*Proxy).Run.func1()
J:/xmrig2xdag/server/proxy/proxy.go:146 +0x1d
github.com/swordlet/xmrig2xdag/proxy.(*Proxy).Run(0xc000162780, {0xc0007f1d20, 0xd})
J:/xmrig2xdag/server/proxy/proxy.go:164 +0x3f0
created by github.com/swordlet/xmrig2xdag/proxy.(*Mining).Login
J:/xmrig2xdag/server/proxy/mining.go:83 +0x2c5

goroutine 134230 [chan receive]:
github.com/swordlet/xmrig2xdag/proxy.(*Proxy).shutdown(0xc0000ccd80)
J:/xmrig2xdag/server/proxy/proxy.go:325 +0xc6
github.com/swordlet/xmrig2xdag/proxy.(*Proxy).Run.func1()
J:/xmrig2xdag/server/proxy/proxy.go:146 +0x1d
github.com/swordlet/xmrig2xdag/proxy.(*Proxy).Run(0xc0000ccd80, {0xc00059a090, 0xc})
J:/xmrig2xdag/server/proxy/proxy.go:164 +0x3f0
created by github.com/swordlet/xmrig2xdag/proxy.(*Mining).Login
J:/xmrig2xdag/server/proxy/mining.go:83 +0x2c5

goroutine 159135 [select, 15 minutes]:
github.com/swordlet/xmrig2xdag/xdag.(*Connection).StartWriter(0xc00010df80)
J:/xmrig2xdag/server/xdag/connect.go:48 +0x1c6
created by github.com/swordlet/xmrig2xdag/xdag.(*Connection).Start
J:/xmrig2xdag/server/xdag/connect.go:99 +0xe7

goroutine 171987 [chan receive]:
github.com/swordlet/xmrig2xdag/proxy.(*Proxy).shutdown(0xc0001b3080)
J:/xmrig2xdag/server/proxy/proxy.go:325 +0xc6
github.com/swordlet/xmrig2xdag/proxy.(*Proxy).Run.func1()
J:/xmrig2xdag/server/proxy/proxy.go:146 +0x1d
github.com/swordlet/xmrig2xdag/proxy.(*Proxy).Run(0xc0001b3080, {0xc000772ab0, 0xa})
J:/xmrig2xdag/server/proxy/proxy.go:164 +0x3f0
created by github.com/swordlet/xmrig2xdag/proxy.(*Mining).Login
J:/xmrig2xdag/server/proxy/mining.go:83 +0x2c5

goroutine 141317 [chan receive]:
github.com/swordlet/xmrig2xdag/proxy.(*Proxy).shutdown(0xc00058db00)
J:/xmrig2xdag/server/proxy/proxy.go:325 +0xc6
github.com/swordlet/xmrig2xdag/proxy.(*Proxy).Run.func1()
J:/xmrig2xdag/server/proxy/proxy.go:146 +0x1d
github.com/swordlet/xmrig2xdag/proxy.(*Proxy).Run(0xc00058db00, {0xc000203880, 0xb})
J:/xmrig2xdag/server/proxy/proxy.go:164 +0x3f0
created by github.com/swordlet/xmrig2xdag/proxy.(*Mining).Login
J:/xmrig2xdag/server/proxy/mining.go:83 +0x2c5

goroutine 141331 [chan send, 14 minutes]:
github.com/swordlet/xmrig2xdag/xdag.(*Connection).StartReader(0xc00010d9d0)
J:/xmrig2xdag/server/xdag/connect.go:88 +0x19a
created by github.com/swordlet/xmrig2xdag/xdag.(*Connection).Start
J:/xmrig2xdag/server/xdag/connect.go:97 +0xa5

goroutine 159163 [chan receive]:
github.com/swordlet/xmrig2xdag/proxy.(*Proxy).shutdown(0xc000163e00)
J:/xmrig2xdag/server/proxy/proxy.go:325 +0xc6
github.com/swordlet/xmrig2xdag/proxy.(*Proxy).Run.func1()
J:/xmrig2xdag/server/proxy/proxy.go:146 +0x1d
github.com/swordlet/xmrig2xdag/proxy.(*Proxy).Run(0xc000163e00, {0xc000b818f0, 0xd})
J:/xmrig2xdag/server/proxy/proxy.go:164 +0x3f0
created by github.com/swordlet/xmrig2xdag/proxy.(*Mining).Login
J:/xmrig2xdag/server/proxy/mining.go:83 +0x2c5

goroutine 178867 [runnable]:
sync.runtime_Semrelease(0xc00007a280, 0x0, 0x36)
C:/Program Files/Go/src/runtime/sema.go:66 +0x19
sync.(*Mutex).unlockSlow(0x10000006232f67d, 0x12808e0)
C:/Program Files/Go/src/sync/mutex.go:224 +0x65
sync.(*Mutex).Unlock(0x0)
C:/Program Files/Go/src/sync/mutex.go:190 +0x29
log.(*Logger).Output(0xc00004e2d0, 0x14, {0xc00000f020, 0x15})
C:/Program Files/Go/src/log/log.go:185 +0x38a
log.(*Logger).Printf(0x11c, {0x1047f93, 0xc00080a660}, {0xc000d65e78, 0xc000510148, 0xc000d65e20})
C:/Program Files/Go/src/log/log.go:191 +0x4c
github.com/swordlet/xmrig2xdag/proxy.(*Proxy).shutdown(0xc0001b3800)
J:/xmrig2xdag/server/proxy/proxy.go:315 +0x7c
github.com/swordlet/xmrig2xdag/proxy.(*Proxy).Run.func1()
J:/xmrig2xdag/server/proxy/proxy.go:146 +0x1d
github.com/swordlet/xmrig2xdag/proxy.(*Proxy).Run(0xc0001b3800, {0xc000a01090, 0xc})
J:/xmrig2xdag/server/proxy/proxy.go:164 +0x3f0
created by github.com/swordlet/xmrig2xdag/proxy.(*Mining).Login
J:/xmrig2xdag/server/proxy/mining.go:83 +0x2c5

goroutine 187620 [chan send]:
github.com/swordlet/xmrig2xdag/proxy.(*Proxy).Remove(...)
J:/xmrig2xdag/server/proxy/proxy.go:447
github.com/swordlet/xmrig2xdag/tcp.SpawnWorker({0x10c18f8, 0xc0000067d8})
J:/xmrig2xdag/server/tcp/worker.go:46 +0x386
created by github.com/swordlet/xmrig2xdag/tcp.StartServer
J:/xmrig2xdag/server/tcp/server.go:43 +0x527

goroutine 170163 [chan receive]:
github.com/swordlet/xmrig2xdag/proxy.(*Proxy).shutdown(0xc000326f00)
J:/xmrig2xdag/server/proxy/proxy.go:325 +0xc6
github.com/swordlet/xmrig2xdag/proxy.(*Proxy).Run.func1()
J:/xmrig2xdag/server/proxy/proxy.go:146 +0x1d
github.com/swordlet/xmrig2xdag/proxy.(*Proxy).Run(0xc000326f00, {0xc000a00740, 0xb})
J:/xmrig2xdag/server/proxy/proxy.go:164 +0x3f0
created by github.com/swordlet/xmrig2xdag/proxy.(*Mining).Login
J:/xmrig2xdag/server/proxy/mining.go:83 +0x2c5

goroutine 178854 [IO wait]:
internal/poll.runtime_pollWait(0x280f90e8, 0x72)
C:/Program Files/Go/src/runtime/netpoll.go:229 +0x89
internal/poll.(*pollDesc).wait(0x18, 0xc0002083d8, 0x0)
C:/Program Files/Go/src/internal/poll/fd_poll_runtime.go:84 +0x32
internal/poll.execIO(0xc000570c98, 0x10608d0)
C:/Program Files/Go/src/internal/poll/fd_windows.go:175 +0xe5
internal/poll.(*FD).Read(0xc000570c80, {0xc00032ac01, 0x5ff, 0x5ff})
C:/Program Files/Go/src/internal/poll/fd_windows.go:441 +0x25f
net.(*netFD).Read(0xc000570c80, {0xc00032ac01, 0xd, 0x0})
C:/Program Files/Go/src/net/fd_posix.go:56 +0x29
net.(*conn).Read(0xc000007db0, {0xc00032ac01, 0x101000000cee93c, 0xab2db8})
C:/Program Files/Go/src/net/net.go:183 +0x45
encoding/json.(*Decoder).refill(0xc000915cc0)
C:/Program Files/Go/src/encoding/json/stream.go:165 +0x17f
encoding/json.(*Decoder).readValue(0xc000915cc0)
C:/Program Files/Go/src/encoding/json/stream.go:140 +0xbb
encoding/json.(*Decoder).Decode(0xc000915cc0, {0xffab20, 0xc000989848})
C:/Program Files/Go/src/encoding/json/stream.go:63 +0x78
github.com/swordlet/xmrig2xdag/stratum.(*DefaultServerCodec).ReadRequestHeader(0xc0000a2940, 0xc0000a2960)
J:/xmrig2xdag/server/stratum/codec.go:61 +0x77
net/rpc.(*Server).readRequestHeader(0xc000913590, {0x10bcc98, 0xc0000a2940})
C:/Program Files/Go/src/net/rpc/server.go:583 +0x66
net/rpc.(*Server).readRequest(0xc0001b3800, {0x10bcc98, 0xc0000a2940})
C:/Program Files/Go/src/net/rpc/server.go:543 +0x3b
net/rpc.(*Server).ServeCodec(0xc000913590, {0x10bcc98, 0xc0000a2940})
C:/Program Files/Go/src/net/rpc/server.go:458 +0x87
github.com/swordlet/xmrig2xdag/stratum.(*Server).ServeCodec(...)
J:/xmrig2xdag/server/stratum/server.go:105
github.com/swordlet/xmrig2xdag/tcp.SpawnWorker({0x10c18f8, 0xc000007db0})
J:/xmrig2xdag/server/tcp/worker.go:44 +0x349
created by github.com/swordlet/xmrig2xdag/tcp.StartServer
J:/xmrig2xdag/server/tcp/server.go:43 +0x527

goroutine 187610 [chan receive]:
github.com/swordlet/xmrig2xdag/proxy.(*Proxy).shutdown(0xc0001b2a80)
J:/xmrig2xdag/server/proxy/proxy.go:325 +0xc6
github.com/swordlet/xmrig2xdag/proxy.(*Proxy).Run.func1()
J:/xmrig2xdag/server/proxy/proxy.go:146 +0x1d
github.com/swordlet/xmrig2xdag/proxy.(*Proxy).Run(0xc0001b2a80, {0xc000194ee0, 0xc})
J:/xmrig2xdag/server/proxy/proxy.go:164 +0x3f0
created by github.com/swordlet/xmrig2xdag/proxy.(*Mining).Login
J:/xmrig2xdag/server/proxy/mining.go:83 +0x2c5

goroutine 194662 [semacquire]:
sync.runtime_SemacquireMutex(0xc000e5fd08, 0x65, 0xd06f53)
C:/Program Files/Go/src/runtime/sema.go:71 +0x25
sync.(*Mutex).lockSlow(0xc00004e2d0)
C:/Program Files/Go/src/sync/mutex.go:138 +0x165
sync.(*Mutex).Lock(...)
C:/Program Files/Go/src/sync/mutex.go:81
log.(*Logger).Output(0xc00004e2d0, 0x14, {0xc0002b5008, 0x15})
C:/Program Files/Go/src/log/log.go:165 +0x9c
log.(*Logger).Printf(0x11f, {0x1047f93, 0xc0008ca0c0}, {0xc000e5fe78, 0xc000707e88, 0xc000e5fe20})
C:/Program Files/Go/src/log/log.go:191 +0x4c
github.com/swordlet/xmrig2xdag/proxy.(*Proxy).shutdown(0xc000162c00)
J:/xmrig2xdag/server/proxy/proxy.go:315 +0x7c
github.com/swordlet/xmrig2xdag/proxy.(*Proxy).Run.func1()
J:/xmrig2xdag/server/proxy/proxy.go:146 +0x1d
github.com/swordlet/xmrig2xdag/proxy.(*Proxy).Run(0xc000162c00, {0xc00059b990, 0xc})
J:/xmrig2xdag/server/proxy/proxy.go:164 +0x3f0
created by github.com/swordlet/xmrig2xdag/proxy.(*Mining).Login
J:/xmrig2xdag/server/proxy/mining.go:83 +0x2c5

E:\xdag_win64_proxy+rig_v1.0.4>

how to fix "use of closed network connection"?

[XDAG_PROXY] 2022/05/17 02:20:13 Broadcasting new job to connected workers.
[XDAG_PROXY] 2022/05/17 02:20:13 Conn Stop()...ConnID = 4
[XDAG_PROXY] 2022/05/17 02:20:13 read msg head error read tcp 172.31.44.240:57990->136.243.71.148:13654: use of closed network connection
[XDAG_PROXY] 2022/05/17 02:20:13 136.243.71.148:13654 [conn Reader exit!]
[XDAG_PROXY] 2022/05/17 02:20:13 136.243.71.148:13654 [conn Writer exit!]
[XDAG_PROXY] 2022/05/17 02:20:13 proxy [4] shutdown

CGO_ENABLED=1 go build

system: ubuntu22.04
CGO_ENABLED=1 go build

github.com/swordlet/xmrig2xdag/proxy

proxy/director.go:21:24: undefined: atomic.Uint64
proxy/director.go:26:25: undefined: atomic.Uint64

No shares produced

[XDAG_PROXY] 2023/11/08 11:00:52 logger is configured [XDAG_PROXY] 2023/11/08 11:00:52 ************************************************************************ [XDAG_PROXY] 2023/11/08 11:00:52 * XMR Stratum to XDAG Proxy v2.0.7 * [XDAG_PROXY] 2023/11/08 11:00:52 * Accepting XMRig Connections on port: 3232 * [XDAG_PROXY] 2023/11/08 11:00:52 * Printing stats every: 60 seconds* [XDAG_PROXY] 2023/11/08 11:00:52 ************************************************************************ [XDAG_PROXY] 2023/11/08 11:00:52 Starting TCP listener on port: :3232 [XDAG_PROXY] 2023/11/08 11:01:01 New proxy. 1 [XDAG_PROXY] 2023/11/08 11:01:01 RPC server is listening on proxy 1 [XDAG_PROXY] 2023/11/08 11:01:01 Client made pool connection. 1 [XDAG_PROXY] 2023/11/08 11:01:01 [Writer Goroutine is running] [XDAG_PROXY] 2023/11/08 11:01:01 [Reader Goroutine is running] [XDAG_PROXY] 2023/11/08 11:01:03 [MYADDRESS]--Successfully logged into pool. [XDAG_PROXY] 2023/11/08 11:01:03 **** Proxy [1] Connected to pool server: <185.106.178.67:23654>, () [XDAG_PROXY] 2023/11/08 11:02:01 uptime:1m0s proxies:1 workers:1 shares:0(+0)

But no shares are produced, xmrig hashes empty, at some point xmrig disconnects.
Any clues ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.