Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pool API not communicating correctly with RPC server #7

Open
craziest opened this issue Aug 24, 2018 · 1 comment
Open

Pool API not communicating correctly with RPC server #7

craziest opened this issue Aug 24, 2018 · 1 comment

Comments

@craziest
Copy link

craziest commented Aug 24, 2018

Kernel version: Aion v0.3.0 - Mainnet - Moldoveanu Peak
Pool version: Master branch commit a214af4

Issue:
As described in issue #2, I am having the exact same problem with my installation. I am able to receive RPC calls by using curl and the result is a valid number.

Example: curl -H "Content-Type: application/json" -X POST --data '{"jsonrpc":"2.0","method":"net_peerCount","params":[],"id":74}' http://127.0.0.1:8545 returns 61.

However, when calling curl http://127.0.0.1:4000/api/pools on a completely fresh install (Ubuntu 16.04, kernel completely synced, pool software freshly built), this is the response:

{ "pools": [ { "id": "aion1", "coin": { "type": "AION" }, "ports": { "3333": { "listenAddress": "0.0.0.0", "difficulty": 1024.0, "varDiff": { "minDiff": 128.0, "maxDiff": 1E+24, "maxDelta": 500.0, "targetTime": 15.0, "retargetTime": 45.0, "variancePercent": 30.0 } } }, "paymentProcessing": { "enabled": true, "minimumPayment": 1.0, "payoutScheme": "PPLNS", "payoutSchemeConfig": { "factor": 2.0 }, "keepTransactionFees": false, "minimumConfirmations": 30, "nrgFee": 0.0001, "minimumPeerCount": 1 }, "clientConnectionTimeout": 600, "jobRebroadcastTimeout": 10, "blockRefreshInterval": 400, "poolFeePercent": 0.75, "address": "0xa0c5da302ca0aa2d6ab5dc7cc7fe024f1b7f1902e7a8ebeb7ff0dd4b6da10a77", "poolStats": { "connectedMiners": 0, "poolHashrate": 0.0, "sharesPerSecond": 0 }, "networkStats": { "networkHashrate": 1252575.7653, "networkDifficulty": 0.0, "lastNetworkBlockTime": "2018-08-24T10:19:40.199501Z", "blockHeight": 1005923, "connectedPeers": 0 }, "topMiners": [], "totalPaid": 0.0 } ] }

As you can see the connected peers and network difficulty values are 0.

Reinstalling the kernel did not help. I even tried doing the same process on Ubuntu 18.04, same result. Network difficulty and peer count are empty when using the pool's api, but return a valid value through a RPC call.

I can provide both my configuration files (kernel and pool) if needed.

Can someone please assist me, I would be very grateful. Thank you.

@FoxtropQ
Copy link

FoxtropQ commented Sep 29, 2018

Hello same issue on "Aion v0.3.1 - Mainnet - Moldoveanu Peak" either prebuild or builded using debian (I know Ubuntu is prefered) using aion_pool2 which make payment uncompleteable. My solution was to remove check from pool around "aion_pool/src/MiningCore/Blockchain/Aion/AionPayoutHandler.cs:207" amd rebuild pool, but this is only to mask this issue. Currently looking into source code to fix this issue by myself.

edit. Issue is not in pool but in Aion since either curl -H "Content-Type: application/json" ... do not work and node console.js drom web3 folder on aion daemon has same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants