dvandal / cryptonote-nodejs-pool

Mining pool for all CryptoNote based coins using Cryptonight, Cryptonight Light and Cryptonight Heavy algorithms
GNU General Public License v2.0
367 stars 611 forks source link

Turtle coin pool #656

Open Ghost-ai-cpu opened 3 years ago

Ghost-ai-cpu commented 3 years ago

Hi, How to setup pool for turtle coin with their latest update

masterprogrammer513 commented 3 years ago

Same here

intensecoin commented 3 years ago

Did you guys found the way to mine ? I´m stuck on 👍 2021-03-22 21:01:05 [daemon] intensecoin error from daemon 2021-03-22 21:01:06 [api] Error getting last block data {"errno":"ECONNRESET","code":"ECONNRESET","syscall":"read"}

dagwood-Fenichuck commented 2 years ago

Guys how did you sort this out please: 2021-03-22 21:01:06 [api] Error getting last block data {"errno":"ECONNRESET","code":"ECONNRESET","syscall":"read"} Have same problem could you post the fix please

frandlyn26 commented 2 years ago

Look for this code in lib/api.js (will be around 104 or 603 depending on where you got your source code from)

apiInterfaces.rpcDaemon('getlastblockheader', {}, function (error, reply) {)

change to

fetch( "http:127.0.0.1:4243/block/last", {}, function (error, reply) {

You will need to change 4243 to the turtlecoin rpc port...

maletazul commented 2 years ago

@frandlyn26

i try that, but return:

ReferenceError: fetch is not defined at getNetworkData (/home/luissilva/pool/lib/api.js:565:17) at network (/home/luissilva/pool/lib/api.js:379:4) at /home/luissilva/pool/node_modules/async/dist/async.js:3669:28 at replenish (/home/luissilva/pool/node_modules/async/dist/async.js:446:21) at /home/luissilva/pool/node_modules/async/dist/async.js:451:13 at eachOfLimit$1 (/home/luissilva/pool/node_modules/async/dist/async.js:477:34) at awaitable (/home/luissilva/pool/node_modules/async/dist/async.js:211:32) at eachOfGeneric (/home/luissilva/pool/node_modules/async/dist/async.js:512:16) at eachOf (/home/luissilva/pool/node_modules/async/dist/async.js:626:16) at awaitable (/home/luissilva/pool/node_modules/async/dist/async.js:211:32) at /home/luissilva/pool/node_modules/async/dist/async.js:3668:9 at awaitable (/home/luissilva/pool/node_modules/async/dist/async.js:211:32) at Object.parallel (/home/luissilva/pool/node_modules/async/dist/async.js:3839:16) at collectStats (/home/luissilva/pool/lib/api.js:214:8) at Object. (/home/luissilva/pool/lib/api.js:2235:1) at Module._compile (internal/modules/cjs/loader.js:999:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) at Module.load (internal/modules/cjs/loader.js:863:32) at Function.Module._load (internal/modules/cjs/loader.js:708:14) at Module.require (internal/modules/cjs/loader.js:887:19) at require (internal/modules/cjs/helpers.js:74:18) at Object. (/home/luissilva/pool/init.js:66:5)

frandlyn26 commented 2 years ago

you need node-fetch module. https://stackoverflow.com/questions/48433783/referenceerror-fetch-is-not-defined