mirror of
https://github.com/jwinterm/nodejs-pool.git
synced 2026-10-19 05:38:35 +02:00
Adding todos to re-implement coin functions within the coins/coin.js file.
This commit is contained in:
@@ -622,6 +622,7 @@ function processShare(miner, job, blockTemplate, params) {
|
||||
|
||||
if (hashDiff.ge(blockTemplate.difficulty)) {
|
||||
// Submit block to the RPC Daemon.
|
||||
// Todo: Implement within the coins/<coin>.js file.
|
||||
global.support.rpcDaemon('submitblock', [shareBuffer.toString('hex')], function (rpcResult) {
|
||||
if (rpcResult.error) {
|
||||
// Did not manage to submit a block. Log and continue on.
|
||||
|
||||
Reference in New Issue
Block a user