Open Ghost-ai-cpu opened 3 years ago
Same here
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"}
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
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...
@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.
you need node-fetch module. https://stackoverflow.com/questions/48433783/referenceerror-fetch-is-not-defined
Hi, How to setup pool for turtle coin with their latest update