Open ghost opened 6 years ago
I forked aion_solo_pool and fixed poolWorker.js so that it listens on IPv4. https://github.com/lope/aion_miner/commit/3531f9cbebeb218f3a1d9eeb44465bc928df9c87
But now the solo pool crashes.
TypeError: Cannot read property 'handleNewClient' of undefined
at Server.<anonymous> (/foo/aion/solo pool/libs/poolWorker.js:279:66)
at emitOne (events.js:116:13)
at Server.emit (events.js:211:7)
at Object.onconnection (net.js:1561:8)
at onconnection (internal/cluster/child.js:168:12)
at Worker.onmessage (internal/cluster/child.js:43:7)
at process.onInternalMessage (internal/cluster/utils.js:42:8)
at emitTwo (events.js:131:20)
at process.emit (events.js:214:7)
at emit (internal/child_process.js:772:12)
Do you have the aion kernel running with the stratum API open in the config file? When the pool isnt able to connect to the kernel you will usually see those type of errors.
Hi Ross,
Thanks for your reply. I wasn't sure about the order of things, but now I've got the kernel running and it's busy syncing. After that I'll try connect the pool to it and then the miner. If I want to CPU mine on the same machine as where the kernel is, should I use the internal miner, or the CPU miner? Once I've got the pool running, I'll try running a miner on another computer and will connect it to my pool.
You could probably use either the internal miner or the CPU miner, they have pretty similar performance. I might lean towards the CPU miner though, the kernel can get pretty busy when processing transactions, running externally you might be able to reduce the load a bit.
If you plan on connecting a miner on another machine you will probably need to revert your change on the pool. If you bind the listening port to 127.0.0.1 outside computers will not be able to connect. The pool should be listening on ipv4 by default but if it still gives you trouble you could try binding to 0.0.0.0; that should allow outside connections.
Thanks Ross, you superstar!
On Fri, 20 Apr 2018, 04:47 aion-Ross, notifications@github.com wrote:
You could probably use either the internal miner or the CPU miner, they have pretty similar performance. I might lean towards the CPU miner though, the kernel can get pretty busy when processing transactions, running externally you might be able to reduce the load a bit.
If you plan on connecting a miner on another machine you will probably need to revert your change on the pool. If you bind the listening port to 127.0.0.1 outside computers will not be able to connect. The pool should be listening on ipv4 by default but if it still gives you trouble you could try binding to 0.0.0.0; that should allow outside connections.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/aionnetwork/aion_miner/issues/32#issuecomment-382952691, or mute the thread https://github.com/notifications/unsubscribe-auth/ACxTy-LfZ1G5S3GpZrURu10ynisBQJCGks5tqUxSgaJpZM4Tctxd .
My pool is running (only listening on IPv6 and computer has IPv6 disabled) Miner cannot connect
(etc infinite loop) The pool is only listening on ipv6. This is all the stuff listening on 3333 (only IPv6)
But I've disabled IPv6 on my computer.
The README says to check config/config.xml but there is no config.xml file anywhere in the solo pool dir (I have searched) my config.json looks like this
I see the 3333 port there, but I don't see anywhere to change the host that it listens on, because I want to make it listen on IPv4.
I tried to post this on discord
#beta_testnet
but the bot removed my permission to write messages because it thought this is spam. First it said I must make it shorter than 2000 chars, but then it kept rejecting it just saying "spam" so I kept shortening it and retrying it. After about 2-3 retries it auto banned me. Can you please unban me?When I look at the source of cliListener I see it's listening on 127.0.0.1, which should make it listen on IPv4... https://github.com/aionnetwork/aion_miner/blob/master/aion_solo_pool/libs/cliListener.js#L38