dbeal-eth / node-merged-pool

High performance Stratum poolserver in Node.js
GNU General Public License v2.0
17 stars 21 forks source link

install help #3

Open jjj092353 opened 10 years ago

jjj092353 commented 10 years ago

Killbyte - wondered if you'd be interested in helping me get all this up and running for some BTC - I want to setup a merged mining pool with Doge, Ltc, Sys, 42 and Pot

sigwo commented 10 years ago

I have it working and finding blocks for POT and SYS. LTC is running, but I do not have enough hash to solve a LTC block. DOGE is waiting for the AUXPoW block but works on testnet. My issue is when I find a block, the stratum throws an error and crashes. I've been working on it in my spare time, as I currently have a commissioned project taking up time. Payouts do not currently work, but I only have me and a friend mining, so I just manually pay her. :) You can check it out at http://bemining.net if you like.

jacobnollette commented 10 years ago

How did you guys get your private keys setup? https://github.com/KillerByte/node-merged-pool/issues/4

sigwo commented 10 years ago

Private key? Use addie.cc for the username for miners and add the addresses to that profile. I'm not sure what private keys you are talking about...For the pools/*coin.json, setup the local wallet address in the file.

On Tue, Sep 2, 2014 at 2:15 PM, Jacob Nollette notifications@github.com wrote:

How did you guys get your private keys setup? #4 https://github.com/KillerByte/node-merged-pool/issues/4

— Reply to this email directly or view it on GitHub https://github.com/KillerByte/node-merged-pool/issues/3#issuecomment-54194145 .

jacobnollette commented 10 years ago

you must have modified from the demo some — in the config file it requires one single address for generating coins, shared across all coins... How did you share a private key across multiple coins?

sigwo commented 10 years ago

It's a public key. I generated it from my NOMP pool. Try visiting http://judge.bemining.net/mining_key and you can download the standalone version.

On Tue, Sep 2, 2014 at 3:03 PM, Jacob Nollette notifications@github.com wrote:

you must have modified from the demo some — in the config file it requires one single address for generating coins, shared across all coins... How did you share a private key across multiple coins?

— Reply to this email directly or view it on GitHub https://github.com/KillerByte/node-merged-pool/issues/3#issuecomment-54201199 .

jacobnollette commented 10 years ago

gotcha, i'm familiar with nomp, have an instance running locally... had wondered about that.. thanks for the input... BTW whats with waiting for the AUXPow block (doge), shouldn't merged mining just work now?

sigwo commented 10 years ago

No, they aren't to the block that signals the AUXPoW yet.

On Tue, Sep 2, 2014 at 3:12 PM, Jacob Nollette notifications@github.com wrote:

gotcha, i'm familiar with nomp, have an instance running locally... had wondered about that.. thanks for the input... BTW whats with waiting for the AUXPow block (doge), shouldn't merged mining just work now?

— Reply to this email directly or view it on GitHub https://github.com/KillerByte/node-merged-pool/issues/3#issuecomment-54202475 .

jacobnollette commented 10 years ago

sigwo — i'm confused, so i tried adding the mining private address as the primary coin payout address — server is saying address is invalid — how do I add the addresses for all the merged coins then?

jacobnollette commented 10 years ago

I'm live now.., we'll see about the crash you mentioned.

How are you merge mining potcoin?? Api throwing an error for getauxblock

sigwo commented 10 years ago

POT is the main coin and syscoin is the AUXPoW coin.

sigwo commented 10 years ago

You can merge mine any scrypt coin with SYS.

jacobnollette commented 10 years ago

what are you doing to keep the process running after it crashes on successful block? cron?

On Sep 2, 2014, at 6:37 PM, sigwo notifications@github.com wrote:

You can merge mine any scrypt coin with SYS.

— Reply to this email directly or view it on GitHub.

sigwo commented 10 years ago

I haven't fixed the block crash or the restart. I'm monitoring the hashrate every so often. As I said, it is an experimental pool now. I'm actually moving it to a different server so I can restart my big NOMP instance and not have it effect testing.

sigwo commented 10 years ago

nothing right now. LOL I see in the logs where it errors, so I'm trying to fix it rather than band-aid it.

On Tue, Sep 2, 2014 at 7:38 PM, Jacob Nollette notifications@github.com wrote:

what are you doing to keep the process running after it crashes on successful block? cron?

On Sep 2, 2014, at 6:37 PM, sigwo notifications@github.com wrote:

You can merge mine any scrypt coin with SYS.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/KillerByte/node-merged-pool/issues/3#issuecomment-54233652 .

jacobnollette commented 10 years ago

i will try to dig in later.. i was using node forever to keep it persistent, but wasn't getting any blocks for hours, and wondered if something was going wrong somewhere down the line... Hard to tell.

sigwo commented 10 years ago

I think the stratum dies, not the server and that's why forever or a cron won't work. I ran just the barebones node-merged-pool (not portal) and it crashes after finding a block. It's not the portal, but the stratum that has an error.

And the payouts are a whole different ballgame. Really wishing the creator would stop by :-)

On Tue, Sep 2, 2014 at 11:38 PM, Jacob Nollette notifications@github.com wrote:

i will try to dig in later.. i was using node forever to keep it persistent, but wasn't getting any blocks for hours, and wondered if something was going wrong somewhere down the line... Hard to tell.

— Reply to this email directly or view it on GitHub https://github.com/KillerByte/node-merged-pool/issues/3#issuecomment-54248430 .

jjj092353 commented 10 years ago

seems like too many problme here to even attempt implementing - however I have one question:

you wrote: You can merge mine any scrypt coin with SYS.

is this true? I thought one certain coins could be merged mined - not "any' coin as your state (at least with sys) which is kind of tanking right now.

sigwo commented 10 years ago

As long as the difficulty is higher than the aux coin (SYS, in this case), yes. Any scrypt coin. LTC is the preferred choice because the diff is so high on LTC.

On Wed, Sep 3, 2014 at 6:30 AM, jjj092353 notifications@github.com wrote:

seems like too many problme here to even attempt implementing - however I have one question:

you wrote: You can merge mine any scrypt coin with SYS.

is this true? I thought one certain coins could be merged mined - not "any' coin as your state (at least with sys) which is kind of tanking right now.

— Reply to this email directly or view it on GitHub https://github.com/KillerByte/node-merged-pool/issues/3#issuecomment-54278177 .

sigwo commented 10 years ago

But even then you can. I am merge mining POT/SYS, RBY/SYS, and VIA/SYS right now. I have found several POT blocks, which is a lower diff coin than SYS. I just won't (shouldn't) find any SYS blocks right now.

On Wed, Sep 3, 2014 at 6:33 AM, Steven Grove signalwo@gmail.com wrote:

As long as the difficulty is higher than the aux coin (SYS, in this case), yes. Any scrypt coin. LTC is the preferred choice because the diff is so high on LTC.

On Wed, Sep 3, 2014 at 6:30 AM, jjj092353 notifications@github.com wrote:

seems like too many problme here to even attempt implementing - however I have one question:

you wrote: You can merge mine any scrypt coin with SYS.

is this true? I thought one certain coins could be merged mined - not "any' coin as your state (at least with sys) which is kind of tanking right now.

— Reply to this email directly or view it on GitHub https://github.com/KillerByte/node-merged-pool/issues/3#issuecomment-54278177 .

jjj092353 commented 10 years ago

what do you have as a Primary coin?

sigwo commented 10 years ago

POT, RBY, and VIA

On Wed, Sep 3, 2014 at 6:37 AM, jjj092353 notifications@github.com wrote:

what do you have as a Primary coin?

— Reply to this email directly or view it on GitHub https://github.com/KillerByte/node-merged-pool/issues/3#issuecomment-54278766 .

jjj092353 commented 10 years ago

so - you are just merge mining two coins and have been using either POT, RBY or VIA as your primary coin?

sigwo commented 10 years ago

Yes. There are very few coins that can be the secondary coin. DOGE is the biggest that will be merge-able when they get to block 371337.

On Wednesday, September 3, 2014, jjj092353 notifications@github.com wrote:

so - you are just merge mining two coins and have been using either POT, RBY or VIA as your primary coin?

— Reply to this email directly or view it on GitHub https://github.com/KillerByte/node-merged-pool/issues/3#issuecomment-54282712 .

jjj092353 commented 10 years ago

so - let me get this right - if I have POT, SYS, RBY, VIA or 42 as a primary - I can mine any other scrypt coin as a secondary?

sigwo commented 10 years ago

No. The primary coin is not the merge mineable coin. doge / sys / taco / peseta / huntercoin(broken) / united scrypt coin / umbrella / Monocle / Parrallax are the merge mineable coins that are the SECONDARY coins. ANY scrypt coin can be the MAIN coin. It is only beneficial (attempting to solve blocks on both chains) IF the MAIN coin has a HIGHER difficulty than the SECONDARY coin.

BigMcRat commented 10 years ago

hi guys,

did you know how to configure pool.json to mine on two or more AuxPow Coins?

sigwo commented 10 years ago

Doesn't work afaik.

-SG

On Nov 29, 2014, at 05:56, BigMcRat notifications@github.com wrote:

hi guys,

did you know how to configure pool.json to mine on two or more AuxPow Coins?

— Reply to this email directly or view it on GitHub.

BigMcRat commented 10 years ago

Hi sigwo,

do you mean two or more AuxPOW coins do not work together or is not possible to mine more AuxPow Coins with this stratum?

sigwo commented 10 years ago

It works using more than one AUXPoW coin together, just not with this software.

-SG

On Nov 30, 2014, at 04:47, BigMcRat notifications@github.com wrote:

Hi sigwo,

do you mean two or more AuxPOW coins do not work together or is not possible to mine more AuxPow Coins with this stratum?

— Reply to this email directly or view it on GitHub.

BigMcRat commented 10 years ago

Hi sigwo,

Thanks a lot for your help! can you suggest a good software for mining more than one AuxPOW coins?

sigwo commented 10 years ago

https://github.com/simplecrypto/powerpool

-SG

On Dec 1, 2014, at 05:26, BigMcRat notifications@github.com wrote:

Hi sigwo,

Thanks a lot for your help! can you suggest a good software for mining more than one AuxPOW coins?

— Reply to this email directly or view it on GitHub.

microlost commented 9 years ago

hi,sigwo,the portal of your pool (http://bemining.net) looks nice,where is the souce? I now I want to build a merged pool mining LTC & DOGE,what do you think of what software should I use

sigwo commented 9 years ago

I have forked UNOMP to https://github.com/sigwo/unified-node-open-mining-portal.

microlost commented 9 years ago

thanks,does your fork suitable for a merged pool?

sigwo commented 9 years ago

It works as intended EXCEPT does NOT pay merged coins to miners yet. Also I have reports that merged mining doesn't work for some. I'm actively working on this project. Only use in testing scenarios at the moment. There are a couple that use this in MPOS mode as well, so the testing base is good.

microlost commented 9 years ago

so,you means can't be build a merged pool with this project now. I have also notice the powerpool your suggested above,and try for a couple hours,but I got an error like this: https://github.com/simplecrypto/powerpool/issues/126

Do you know what is the problem

sigwo commented 9 years ago

So, there are two parts to mining pools. The stratum and the portal (or website). This is the stratum that I use to build UNOMP. My above link is to the portal, that pulls in the stratum together, into a working unit. My UNOMP link is a working pool, albeit an alpha, in development, project.

microlost commented 9 years ago

I have try with your fork UNOMP,the backenk work well,but when I run the frontend,I got a error like this: module.js:340 throw err; ^ Error: Cannot find module 'log4js' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (module.js:380:17) at Object. (/root/unomp/init.js:9:18) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Function.Module.runMain (module.js:497:10)

sigwo commented 9 years ago

Install log4js

-SG

On Mar 27, 2015, at 4:04 AM, microlost notifications@github.com wrote:

I have try with your fork UNOMP,the backenk work well,but when I run the frontend,I got a error like this: module.js:340 throw err; ^ Error: Cannot find module 'log4js' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (module.js:380:17) at Object. (/root/unomp/init.js:9:18) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Function.Module.runMain (module.js:497:10)

— Reply to this email directly or view it on GitHub.

microlost commented 9 years ago

now error like this after install log4js:

[2015-03-29 17:22:44.379] [INFO] [default] - New Relic [2015-03-29 17:22:44.388] [INFO] [default] - POSIX Not Installed [2015-03-29 17:22:44.388] [DEBUG] [default] - POSIX Connection Limit (Safe to ignore) POSIX module not installed and resource (connection) limit was not raised [2015-03-29 17:22:44.388] [INFO] [default] - Run Workers [2015-03-29 17:22:44.406] [DEBUG] [default] - Master CLI CLI listening on port 17117 [2015-03-29 17:22:44.910] [DEBUG] [default] - Master PoolSpawner Spawned 1 pool(s) on 2 thread(s) [2015-03-29 17:22:45.352] [INFO] [default] - New Relic [2015-03-29 17:22:45.371] [INFO] [default] - POSIX Not Installed [2015-03-29 17:22:45.372] [INFO] [default] - Run Workers [2015-03-29 17:22:45.474] [DEBUG] [default] - Website Server Website started on 0.0.0.0:8080 [2015-03-29 17:22:45.720] [INFO] [default] - New Relic [2015-03-29 17:22:45.747] [INFO] [default] - POSIX Not Installed [2015-03-29 17:22:45.749] [INFO] [default] - Run Workers [2015-03-29 17:22:45.791] [DEBUG] [default] - Switching Setup Thread 1 Loading last proxy state from redis [2015-03-29 17:22:45.819] [DEBUG] [default] - Pool litecoin Thread 1 Share processing setup with redis (127.0.0.1:6379) [2015-03-29 17:22:45.841] [DEBUG] [default] - Switching Setup Thread 1 Last proxy state loaded from redis [2015-03-29 17:22:45.861] [DEBUG] [default] - Switching Setup Thread 1 Switching "switch2" listening for scrypt on port 4444 into litecoin

/root/unomp/libs/poolWorker.js:225 logger[severity](logSystem, logComponent, logSubCat, text); ^ TypeError: Object # has no method 'special' at pool.on.on.on.on.process.send.type (/root/unomp/libs/poolWorker.js:225:29) at pool.emit (events.js:98:17) at emitSpecialLog (/root/unomp/node_modules/merged-pool/lib/pool.js:28:49) at OutputPoolInfo (/root/unomp/node_modules/merged-pool/lib/pool.js:133:9) at /root/unomp/node_modules/merged-pool/lib/pool.js:51:29 at StratumServer.StartStratumServer._this.stratumServer.on.on.on.client.on.on.extraNonce2Size (/root/unomp/node_modules/merged-pool/lib/pool.js:573:13) at StratumServer.emit (events.js:92:17) at Server. (/root/unomp/node_modules/merged-pool/lib/stratum.js:439:27) at Server.g (events.js:180:16) at Server.emit (events.js:117:20) [2015-03-29 17:22:45.935] [ERROR] [default] - Master PoolSpawner Fork 0 died, spawning replacement worker...

sigwo commented 9 years ago

oh, no wonder LOL. This isn't my repo.You never changed to the repo i linked above.....

microlost commented 9 years ago

Indeed, very embarrassed...LOL..., wasted me a couple of days I have rebuild it with your repo, and it works now ,thanks. my pool now have found a LTC block and couples of DOGE blocks,but always in a pending state,also ,the pool can't pay to workers, Neither LTC nor DOGE. Then I want to set the confirmations of block number, but there is no relative options in the config file. Are you still in the development of this software?

sigwo commented 9 years ago

Go here https://github.com/UNOMP/unified-node-open-mining-portal That is the current software development effort.

microlost commented 9 years ago

that was the repo I have try before

sigwo commented 9 years ago

This repo does nothing but the stratum. If you are looking for something that looks like http://pool.unomp.org, go to the linked repo in my last reply. If not, I cannot help, as I do not own this repo.

microlost commented 9 years ago

you said above that your rope can NOT pay merged coins to miners yet,does it means neither primary coin nor AUXPoW coin?

sigwo commented 9 years ago

Please move to the current repo. I cannot fix/change anything in this repo. Please create tickets for issues in the following repo: https://github.com/UNOMP/unified-node-open-mining-portal

I will no longer respond to this thread. I hope to see you in the new repo.

microlost commented 9 years ago

ok, thanks.