Pages:
Author

Topic: Stratum Pool Server [Node.js] (supports POS/POW, SHA/Scrypt/Quark/X11, Vardiff) (Read 21348 times)

member
Activity: 88
Merit: 10
Quote
Error: Cannot find module 'stratum-pool'
try "npm install stratum-pool"
newbie
Activity: 29
Merit: 0
On updating npm, I get the following, at the end of the output:

Code:
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Linux 3.19.0-28-generic
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/tom/nomp/node_modules/stratum-pool/node_modules/multi-hashing
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.2
gyp ERR! not ok
npm ERR! Linux 3.19.0-28-generic
npm ERR! argv "node" "/usr/local/bin/npm" "update"
npm ERR! node v0.12.7
npm ERR! npm  v2.14.2
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the multi-hashing package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls multi-hashing
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/tom/nomp/npm-debug.log

and on trying node init.js, I get:

Code:
module.js:338
    throw err;
          ^
Error: Cannot find module 'stratum-pool'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object. (/home/tom/nomp/libs/poolWorker.js:1:77)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)

Any advice on how to fix it?

npm is version 2.14.2
node is version 0.12.7

Thanks.
sr. member
Activity: 379
Merit: 254
Knowledge is power
I have installed nomp + MPOS,  it's working and accepting shares and blocks are being solved but it's not displaying in the list of solved blocks neither in the block Explorer. There are transactions in the central wallet of solved blocks.
What could be the problem?
sr. member
Activity: 616
Merit: 253
I have a question - I'm running a guncoin pool now which is scrypt, but they're switching to neo-scrypt?

will this products support neo-scrypt and if so what changes to I need to make. I installed the stratum from git source about 10 week ago

thanks
hero member
Activity: 785
Merit: 500
BURST got Smart Contracts (AT)

node init.js   gives me:
Quote
events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: bind EACCES
    at errnoException (net.js:904:11)
    at net.js:1072:30
    at Object.5:1 (cluster.js:592:5)
    at handleResponse (cluster.js:171:41)
    at respond (cluster.js:192:5)
    at handleMessage (cluster.js:202:5)
    at process.emit (events.js:117:20)
    at handleMessage (child_process.js:322:10)
    at Pipe.channel.onread (child_process.js:349:11)
2014-08-14 13:10:05 [Master]    [Website] Website process died, spawning replacement...



sudo node init.js

Quote
events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: bind EADDRINUSE
    at errnoException (net.js:904:11)
    at net.js:1084:30
    at Object.8:1 (cluster.js:592:5)
    at handleResponse (cluster.js:171:41)
    at respond (cluster.js:192:5)
    at handleMessage (cluster.js:202:5)
    at process.emit (events.js:117:20)
    at handleMessage (child_process.js:322:10)
    at child_process.js:396:7
    at process.handleConversion.net.Native.got (child_process.js:91:7)
2014-08-14 12:56:51 [Master]    [Website] Website process died, spawning replacement...

/etc/apache2/sites-available/coins.abc.com.conf  looks like:
Quote

    ServerAdmin [email protected]
    ServerName coins.abc.com

    DocumentRoot /var/www/html/coins
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined



config.json includes:
Quote
"website": {
        "enabled": true,
        "host": "127.0.0.1",
        "port": 80,
        "stratumHost": "coins.abc.com",
        "stats": {
            "updateInterval": 60,
            "historicalRetention": 43200,
            "hashrateWindow": 300
        },
        "adminCenter": {
            "enabled": true,
            "password": "1234"
        }
    },

I tried as host ip 0.0.0.0   and my real ip 1.2.3.4

What am I missing?
full member
Activity: 133
Merit: 100
Hi zone117x!

I've successfully installed nomp in mpos compatibility mode as replacement for python-stratum-mining. I am using yacoin config file.
All seems to be OK! The shares are accepted.

When the block was found it accepted by wallet successfully. But nomp gives the error in console: "We thought a block was found but it was rejected by the daemon"

Code:
2014-07-13 18:29:06 [Pool]      [yacoin] (Thread 1) We thought a block was found but it was rejected by the daemon, share data: {"job":"387","ip":"192.168.1.101","port":3333,"worker":"ya.R9270X","height":629143,"blockReward":58760000,"difficulty":1,"shareDiff":"510.48249361","blockDiff":388.841603072,"blockDiffActual":0.005933252,"blockHash":"fe1b703bf84eae45499dc7a186279fc6bd5dcb82591537739303f283884fce06"}
2014-07-13 18:29:06 [Pool]      [yacoin] (Thread 1) Share accepted at diff 1/510.48249361 by ya.R9270X [192.168.1.101]

Why is the block hash so weird? (not filled with leading zeroes)



So info about block doesn't stored in mysql base. And MPOS doesn't see any blocks found.


Can you make tutorial config stratum ?
sr. member
Activity: 288
Merit: 260
Hi zone117x!

I've successfully installed nomp in mpos compatibility mode as replacement for python-stratum-mining. I am using yacoin config file.
All seems to be OK! The shares are accepted.

When the block was found it accepted by wallet successfully. But nomp gives the error in console: "We thought a block was found but it was rejected by the daemon"

Code:
2014-07-13 18:29:06 [Pool]      [yacoin] (Thread 1) We thought a block was found but it was rejected by the daemon, share data: {"job":"387","ip":"192.168.1.101","port":3333,"worker":"ya.R9270X","height":629143,"blockReward":58760000,"difficulty":1,"shareDiff":"510.48249361","blockDiff":388.841603072,"blockDiffActual":0.005933252,"blockHash":"fe1b703bf84eae45499dc7a186279fc6bd5dcb82591537739303f283884fce06"}
2014-07-13 18:29:06 [Pool]      [yacoin] (Thread 1) Share accepted at diff 1/510.48249361 by ya.R9270X [192.168.1.101]

Why is the block hash so weird? (not filled with leading zeroes)

So info about block doesn't stored in mysql base. And MPOS doesn't see any blocks found.
newbie
Activity: 22
Merit: 0
So, I keep getting an error while trying to install this stratum server code on Ubuntu.  I've tried several systems, and updating redis and python as described in the readme, but the error never changes or improves. 

I get the following a little ways through running "npm update"....

npm http 304 https://registry.npmjs.org/bignum/0.7.0
npm http 404 https://registry.npmjs.org/multi-hashing/0.0.9
npm ERR! Error: version not found: 0.0.9 : multi-hashing/0.0.9
npm ERR!     at RegClient. (/usr/share/npm/node_modules/npm-registry-client/lib/request.js:269:14)
npm ERR!     at Request.self.callback (/usr/lib/nodejs/request/main.js:119:22)
npm ERR!     at Request. (/usr/lib/nodejs/request/main.js:525:16)
npm ERR!     at Request.EventEmitter.emit (events.js:95:17)
npm ERR!     at IncomingMessage. (/usr/lib/nodejs/request/main.js:484:14)
npm ERR!     at IncomingMessage.EventEmitter.emit (events.js:117:20)
npm ERR!     at _stream_readable.js:910:16
npm ERR!     at process._tickCallback (node.js:415:13)
npm ERR! If you need help, you may report this log at:
npm ERR!     
npm ERR! or use
npm ERR!     reportbug --attach npm-debug.log npm

npm ERR! System Linux 3.11.0-12-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "update"
npm ERR! node -v v0.10.15
npm ERR! npm -v 1.2.18

Can anyone help?

Install nodes legacy, I had the same issue, now is working perfectly
hero member
Activity: 780
Merit: 501
- No orphaned blocks

Really??
How do you manage to achieve that???
LOL  Cheesy
full member
Activity: 134
Merit: 100
I am trying to understand how to use NOMP to multi-mine using a Base58Check compatible pubkey and a custom profit switcher algo.  In my case, I am working from a simple implementation of being able to manually switch the auto-switch pool from a web service.  I've looked at the bitcoin code and wiki so understand the mechanics of key creation-- now I am wondering if someone can point me towards a handy utility to help generate WIF keys from a common key to import into an arbitrary wallet.  So I don't have to write one.  Not wanting to reinvent the wheel ( I was doing that already before I found NOMP <3 ) and I figure I'm overlooking a key piece of information to do this easily.

Thanks.
legendary
Activity: 986
Merit: 1027
Miner-Control.de Pooler
Hy,

i will install node-stratum-pool but... how?

Iam a node newbie. But iam a php, c# and java (jquery) programmer.
But i will save time.

so i had install node on my centOS Server and had made npm update. All ok. No errors on install.

So now i have the pool here... where i must place the config.js or config.json?
Where is the including in the code?

Must i place all https://github.com/zone117x/node-stratum-pool install infos in the config.js?

Where must i place the config? /lib/ ? or root?

node stratum.js to start? or must i make a start.js file with pool.start(); ?

Have anyone a step by step instruction ?

THX

Best Regards
newbie
Activity: 4
Merit: 0
So, I keep getting an error while trying to install this stratum server code on Ubuntu.  I've tried several systems, and updating redis and python as described in the readme, but the error never changes or improves. 

I get the following a little ways through running "npm update"....

npm http 304 https://registry.npmjs.org/bignum/0.7.0
npm http 404 https://registry.npmjs.org/multi-hashing/0.0.9
npm ERR! Error: version not found: 0.0.9 : multi-hashing/0.0.9
npm ERR!     at RegClient. (/usr/share/npm/node_modules/npm-registry-client/lib/request.js:269:14)
npm ERR!     at Request.self.callback (/usr/lib/nodejs/request/main.js:119:22)
npm ERR!     at Request. (/usr/lib/nodejs/request/main.js:525:16)
npm ERR!     at Request.EventEmitter.emit (events.js:95:17)
npm ERR!     at IncomingMessage. (/usr/lib/nodejs/request/main.js:484:14)
npm ERR!     at IncomingMessage.EventEmitter.emit (events.js:117:20)
npm ERR!     at _stream_readable.js:910:16
npm ERR!     at process._tickCallback (node.js:415:13)
npm ERR! If you need help, you may report this log at:
npm ERR!     
npm ERR! or use
npm ERR!     reportbug --attach npm-debug.log npm

npm ERR! System Linux 3.11.0-12-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "update"
npm ERR! node -v v0.10.15
npm ERR! npm -v 1.2.18

Can anyone help?
member
Activity: 138
Merit: 10
newbie
Activity: 52
Merit: 0
Hello ,

I have some difficult`s setting up NOMP module.
I have configured everything noticed in README but what is happening:
Connection is established between miner and back-end.Subscribe and authorize messages are sent by miner, and miner receive job . Miner start solving  the job and... then nothing. Any idea?

That`s because i`m trying to mine x11 with vardiff min32 max1024 Wink Very difficult.
full member
Activity: 182
Merit: 100
Please help me, I'm a newbie in pool configuration, I want to add node stratum for MPOS but still have some questiions:

1.
Code:
Create the configuration for your coin:
   
Code:
Create and start new pool with configuration options and authentication function
   
Code:
Listen to pool events
   What is their name and where to put them?
2. Where to run this command?
   
Code:
pool.start();
3. I add successfully NOMP to MPOS but when mining, pool shows my hash rate very low, where am I wrong?

Thanks for your help.
newbie
Activity: 52
Merit: 0
Hello ,

I have some difficult`s setting up NOMP module.
I have configured everything noticed in README but what is happening:
Connection is established between miner and back-end.Subscribe and authorize messages are sent by miner, and miner receive job . Miner start solving  the job and... then nothing. Any idea?
hero member
Activity: 658
Merit: 500
CCNA: There i fixed the internet.
ERROR................

events.js:72
throw er; // Unhandled 'error' event
^
Error: bind EACCES
at errnoException (net.js:904:11)
at net.js:1072:30
at Object.12:1 (cluster.js:592:5)
at handleResponse (cluster.js:171:41)
at respond (cluster.js:192:5)
at handleMessage (cluster.js:202:5)
at process.EventEmitter.emit (events.js:117:20)
at handleMessage (child_process.js:322:10)
at Pipe.channel.onread (child_process.js:349:11)
2014-05-05 17:21:19 [Master] [Website] Website process died, spawning replacement...

xxxxx@mpos:~/nomp$

PS:
config.json

"website": {
    "enabled": true,
    "port": 80,
    "stratumHost": "localhost",
    "stats": {
        "updateInterval": 60,
        "historicalRetention": 43200,
        "hashrateWindow": 300
    },
    "adminCenter": {
        "enabled": true,
        "password": "password"
    }
},

Are you trying to bind to port 80 on a Linux machine?  If so only processes owned by root can do that. So try sudo
member
Activity: 79
Merit: 10
ERROR................

events.js:72
throw er; // Unhandled 'error' event
^
Error: bind EACCES
at errnoException (net.js:904:11)
at net.js:1072:30
at Object.12:1 (cluster.js:592:5)
at handleResponse (cluster.js:171:41)
at respond (cluster.js:192:5)
at handleMessage (cluster.js:202:5)
at process.EventEmitter.emit (events.js:117:20)
at handleMessage (child_process.js:322:10)
at Pipe.channel.onread (child_process.js:349:11)
2014-05-05 17:21:19 [Master] [Website] Website process died, spawning replacement...

xxxxx@mpos:~/nomp$

PS:
config.json

"website": {
    "enabled": true,
    "port": 80,
    "stratumHost": "localhost",
    "stats": {
        "updateInterval": 60,
        "historicalRetention": 43200,
        "hashrateWindow": 300
    },
    "adminCenter": {
        "enabled": true,
        "password": "password"
    }
},
member
Activity: 79
Merit: 10
hero member
Activity: 658
Merit: 500
CCNA: There i fixed the internet.
take a look at https://github.com/bitcoinjs/bitcoinjs-server/ for a nodejs implementation of the p2p functionality
Pages:
Jump to: