Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pool.js convert_blob issue #14

Closed
pfolthof opened this issue May 26, 2014 · 4 comments
Closed

pool.js convert_blob issue #14

pfolthof opened this issue May 26, 2014 · 4 comments

Comments

@pfolthof
Copy link

I try to install this pool on Ubuntu 14 using nodejs 0.10.28 (0.11 had compile issues), but I get an error as soon as the first response is being created. I added some debug info as shown below. Could you maybe point me in the right direction? Thanks.

----- lib/pool.js -----

BlockTemplate.prototype = {
nextBlob: function(){
this.buffer.writeUInt32BE(++this.extraNonce, this.reserveOffset);
console.log("***** extraNonce: " + this.extraNonce + ", reserveOffset: " + this.reserveOffset + " ***");
console.log("**
* buffer: " + new Buffer(this.buffer).toString('hex') + " *****");
return cnUtil.convert_blob(this.buffer).toString('hex');
}
};

----- output -----

+++++ method: login, params: {"agent":"simpleminer/0.1","login":"6j5B95.....QPafQ66Wgz3dy","pass":"x"}
***** extraNonce: 1, reserveOffset: 467 *****
***** buffer: 020089acb267e7169a7fd5e21a0e59b40ae5d04b11f910715c38ce1e158b8d0c3871010085c28e9c05000000000000000000000000000000000000000000000000000000000000000000000000010000000023032100000000000000000000000000000000000000000000000000000000000000000001b9ef0101fffdee0108c2e80e0241d700b48b9de92c6755d3ccd354aa80972ca79ea66dc3bd0a9907b71a992cffc08db7010284e72161547c13b0e69d124f30c47111b925a88eccdae90595341bb6fbf827ac80b4891302283f6c0c0d62ed9d9fdb1ea8531d6526a3a3000f2d06345fdcbc3b61d1c460fd80c2d72f021c7e5f36acefd962dafab738f9bb1cd4759511492eb8ccb32a1952e7946f695480f882ad1602c290ae8ed6c47f90ca11342186f299b4a8ee501a65d9987af4382172b62896a780b09dc2df01029b5a88d4e86508ffa0a15f62e016f363eaf358e9b2dd404358703cedabae0e1080f092cbdd08027065604839969283286e5399230525404c224423bb1ac08a1a4c46b58b239b6c8080d194b5740278b9da7222f9d90ca8c1aec2c75efb817fba6c814a67e64ad6f6371e9ef508f22b0180880c7f84eb02ee8bfbc6dec29e1c11d42dca12a658a0953d1e74a2599c19b602080000000001d286e50167701ef151cdfcf7db7a570c6b0807b72c750adba1f0d3f31d6ad4dd0ff06d42 *****

/var/www/html/lib/pool.js:124
return cnUtil.convert_blob(this.buffer).toString('hex');
^
Error: Failed to parse block
at Object.BlockTemplate.nextBlob (/var/www/html/lib/pool.js:124:23)
at Object.Miner.getJob (/var/www/html/lib/pool.js:264:41)
at handleMinerMethod (/var/www/html/lib/pool.js:486:28)
at IncomingMessage. (/var/www/html/lib/pool.js:736:17)
at IncomingMessage.EventEmitter.emit (events.js:92:17)
at _stream_readable.js:919:16
at process._tickCallback (node.js:419:13)

@exmac
Copy link

exmac commented May 27, 2014

May be it's a problem of coin, i receive some result on Fantomcoin, but Bytecoin and QuazarCoin work fine ...

ps:

{
"id": "test",
"jsonrpc": "2.0",
"result": {
"blocktemplate_blob": "0200ff357e537a61e63d9ab58ea5dd7d5a0b56cd9fdcb19774e4a579ad602b35cd56010080a7939c05000000000000000000000000000000000000000000000000000000000000000000000000010000000023032100000000000000000000000000000000000000000000000000000000000000000001affb0101fff3fa0108bdf52302cb6401d65fc7a9ff8ad6a53e56612ea45eff7337398e18ac7d136113d8b70baac08db701024ed12f75b0a68fae23a39720ca54249d011bb2ebf2385c822316ebb1d69c6aef808ece1c02ddc8ed81a2164c7f911de089bda432b8a52a9134686039be63e602421b33f4e080cab5ee0102b0e463bb1be0d28afb696ee518f937b71d9689942a04dd8a6930c41e04fc070c80d0acf30e02c1fbad0a0739b1ab5a4e45238e3796b9aa2ee24b411695cb5cd158cff294eecb80b09dc2df0102162817f17b5354d0b29012ac4e84cdcc6ac95596ee9fb0cbab1240d4ddff739c80f092cbdd0802aed6322fb8a6e84934284a9cb53bc7f17fe180a9d7ed30d8673eddda1a0829d88080d194b57402ccf9d15e5421e3b7b31f79c8fa37971a472357096f734a4b2697c9d51ba4543deb0101a8494b334fc0243fa20e38ab75d9f989b173dc6bf38832dd1a5b072ffa52c30e02c8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"difficulty": 21853964,
"height": 32115,
"reserved_offset": 469,
"status": ""
}

looks fine ...

@pfolthof
Copy link
Author

Yes, I was hoping to use this pool for Fantomcoin, as it is listed as one of the supported coins (and it is based on CryptoNote). Do you think I should look somewhere in the implementation of fantomcoind or their simplewallet?

@dayas
Copy link

dayas commented Jun 17, 2014

get the same error with Monet Verde coin, but only after address validation is disabled.

@zone117x
Copy link
Owner

I'm closing this issue and removing stated support for Fantomcoin. This project has no future plans to actively support any coins that don't work by default because the clone coin devs make changes which break the pool software yet make no effort to patch the pool to work with their changes.

For this pool to add support for modified cryptonote coins then the devs/communities behind those coins will have to fund a bounty to make it worth while for devs of this project.

PhearZero pushed a commit to PhearNet/node-cryptonote-pool that referenced this issue Aug 13, 2017
theprogramer pushed a commit to pool-rio/node-cryptonote-pool that referenced this issue Jul 13, 2019
missing address listing in admin users list fix and more krb pools
theprogramer pushed a commit to pool-rio/node-cryptonote-pool that referenced this issue Jul 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants