aionnetwork / aion_pool2

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

Payout handler / daemon rpc issue #14

Closed blake2n closed 5 years ago

blake2n commented 5 years ago

@centrys-alin Discovered a new payout issue. I'll try to get to the bottom of this! I am not sure where it originates from at this point. Any assistance is appreciated.

[2018-10-15 19:39:12.1496] [D] [DaemonClient] ExecuteCmdAllAsync(eth_getBlockByNumber) [2018-10-15 19:39:12.1496] [D] [DaemonClient] [DaemonClient] Starting RPC Request to eth_getBlockByNumber [2018-10-15 19:39:12.1530] [D] [DaemonClient] [DaemonClient] RPC Request to eth_getBlockByNumber actually took 1 ms [2018-10-15 19:39:12.1898] [D] [DaemonClient] ExecuteBatchAnyAsync(eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber, eth_getBlockByNumber) [2018-10-15 19:39:12.1995] [D] [DaemonClient] [DaemonClient] Starting RPC Request to http://10.7.16.3:18589 [2018-10-15 19:39:12.2359] [D] [DaemonClient] [DaemonClient] RPC Request to http://10.7.16.3:18589 actually took 5 ms [2018-10-15 19:39:12.2814] [D] [DaemonClient] ExecuteBatchAnyAsync(eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt, eth_getTransactionReceipt) [2018-10-15 19:39:12.2814] [D] [DaemonClient] [DaemonClient] Starting RPC Request to http://10.1.96.3:8549 [2018-10-15 19:39:21.5209] [I] [StatsRecorder] Updating hashrates for pool aion [2018-10-15 19:39:21.5292] [D] [ShareRepository] GetHashAccumulationBetweenCreated(aion) [2018-10-15 19:39:21.5523] [D] [StatsRepository] InsertPoolStats() [2018-10-15 19:39:22.2906] [E] [PayoutManager] [aion] Payment processing failed System.AggregateException: One or more errors occurred. (One or more errors occurred. (A task was canceled.)) ---> System.AggregateException: One or more errors occurred. (A task was canceled.) ---> System.Threading.Tasks.TaskCanceledException: A task was canceled. --- End of inner exception stack trace --- at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification) at MiningCore.DaemonInterface.DaemonClient.sendResponse(HttpRequestMessage request, DaemonEndpointConfig endPoint, String method) in /home/foundry/aion_pool2/aion_pool/src/MiningCore/DaemonInterface/DaemonClient.cs:line 316 at MiningCore.DaemonInterface.DaemonClient.BuildBatchRequestTask(DaemonEndpointConfig endPoint, DaemonCmd[] batch) in /home/foundry/aion_pool2/aion_pool/src/MiningCore/DaemonInterface/DaemonClient.cs:line 356 --- End of inner exception stack trace --- at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification) at MiningCore.DaemonInterface.DaemonClient.MapDaemonBatchResponse(Int32 i, Task1 x) in /home/foundry/aion_pool2/aion_pool/src/MiningCore/DaemonInterface/DaemonClient.cs:line 433 at MiningCore.DaemonInterface.DaemonClient.ExecuteBatchAnyAsync(DaemonCmd[] batch) in /home/foundry/aion_pool2/aion_pool/src/MiningCore/DaemonInterface/DaemonClient.cs:line 226 at MiningCore.Blockchain.Aion.AionPayoutHandler.GetTxRewardAsync(Block blockInfo) in /home/foundry/aion_pool2/aion_pool/src/MiningCore/Blockchain/Aion/AionPayoutHandler.cs:line 278 at MiningCore.Blockchain.Aion.AionPayoutHandler.ClassifyBlocksAsync(Block[] blocks) in /home/foundry/aion_pool2/aion_pool/src/MiningCore/Blockchain/Aion/AionPayoutHandler.cs:line 151 at MiningCore.Payments.PayoutManager.UpdatePoolBalancesAsync(PoolConfig pool, IPayoutHandler handler, IPayoutScheme scheme) in /home/foundry/aion_pool2/aion_pool/src/MiningCore/Payments/PayoutManager.cs:line 117 at MiningCore.Payments.PayoutManager.ProcessPoolsAsync() in /home/foundry/aion_pool2/aion_pool/src/MiningCore/Payments/PayoutManager.cs:line 95 ---> (Inner Exception #0) System.AggregateException: One or more errors occurred. (A task was canceled.) ---> System.Threading.Tasks.TaskCanceledException: A task was canceled. --- End of inner exception stack trace --- at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification) at MiningCore.DaemonInterface.DaemonClient.sendResponse(HttpRequestMessage request, DaemonEndpointConfig endPoint, String method) in /home/foundry/aion_pool2/aion_pool/src/MiningCore/DaemonInterface/DaemonClient.cs:line 316 at MiningCore.DaemonInterface.DaemonClient.BuildBatchRequestTask(DaemonEndpointConfig endPoint, DaemonCmd[] batch) in /home/foundry/aion_pool2/aion_pool/src/MiningCore/DaemonInterface/DaemonClient.cs:line 356 ---> (Inner Exception #0) System.Threading.Tasks.TaskCanceledException: A task was canceled.<--- <--- at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification) at MiningCore.DaemonInterface.DaemonClient.MapDaemonBatchResponse(Int32 i, Task1 x) in /home/foundry/aion_pool2/aion_pool/src/MiningCore/DaemonInterface/DaemonClient.cs:line 433 at MiningCore.DaemonInterface.DaemonClient.ExecuteBatchAnyAsync(DaemonCmd[] batch) in /home/foundry/aion_pool2/aion_pool/src/MiningCore/DaemonInterface/DaemonClient.cs:line 226 at MiningCore.Blockchain.Aion.AionPayoutHandler.GetTxRewardAsync(Block blockInfo) in /home/foundry/aion_pool2/aion_pool/src/MiningCore/Blockchain/Aion/AionPayoutHandler.cs:line 278 at MiningCore.Blockchain.Aion.AionPayoutHandler.ClassifyBlocksAsync(Block[] blocks) in /home/foundry/aion_pool2/aion_pool/src/MiningCore/Blockchain/Aion/AionPayoutHandler.cs:line 151 at MiningCore.Payments.PayoutManager.UpdatePoolBalancesAsync(PoolConfig pool, IPayoutHandler handler, IPayoutScheme scheme) in /home/foundry/aion_pool2/aion_pool/src/MiningCore/Payments/PayoutManager.cs:line 117 at MiningCore.Payments.PayoutManager.ProcessPoolsAsync() in /home/foundry/aion_pool2/aion_pool/src/MiningCore/Payments/PayoutManager.cs:line 95

blake2n commented 5 years ago

This problem was resolved with a minor configuration update. The payout handler does not need to be modified. If anyone has this issue feel free to message me for assistance.