aionnetwork / aion_pool2

aion pool implementation with c# core.
13 stars 15 forks source link

Pool API not able to communicate with RPC server #2

Closed suprnrdy closed 6 years ago

suprnrdy commented 6 years ago

Kernel: 0.2.8 Pool: aion_pool2 Master Branch Commit on Jun 22, 2018

Issue: Kernel is running, able to unlock wallet through web3 and able to receive RPC calls through curl such as: curl -H "Content-Type: application/json" -X POST --data '{"jsonrpc":"2.0","method":"net_peerCount","params":[],"id":74}' http://127.0.0.1:8545

This call results in a returned number of 16 connected peers.

When getting Pool API results, peerCount and networkDifficulty are zero: curl http://127.0.0.1:4000/api/pools

This also results in a failed payout to miners because pool is unable to unlock coinbase account. Attempted to unlock through web3 and then do a payout with the same error:

System.Exception: Unable to unlock coinbase account for sending transaction
   at MiningCore.Blockchain.Aion.AionPayoutHandler.Payout(Balance balance)
suprnrdy commented 6 years ago

Reinstalled the kernel and started fresh. Everything is working now. Not sure why I was able to send curl commands to RPC, but the pool was not able to though.