# Zcash mining pool

**URL:** https://forum.zcashcommunity.com/t/zcash-mining-pool/816
**Category:** Mining Support
**Created:** [June 10, 2016, 4:42am UTC](https://forum.zcashcommunity.com/t/zcash-mining-pool/816 "2016-06-10T04:42:04Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Austin-Williams](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@Austin-Williams](https://forum.zcashcommunity.com/u/Austin-Williams)
#### Post date: [June 10, 2016, 4:42am UTC](https://forum.zcashcommunity.com/t/zcash-mining-pool/816/1 "2016-06-10T04:42:04Z")

</div>

Let’s build one.

If I’m not mistaken, this is the roadmap to get from where we are now to having a zcash mining pool (which will greatly reduce the variance of the reward for miners, and therefore encourage more mining by more people).

(1) Build a stand-alone miner. I’m thinking we can fork and modify [cpuminer](https://github.com/pooler/cpuminer), (perhaps grabbing code from zcash’s miner.cpp?).

(2) Set up a pool on a dedicated AWS EC2 server.

(3) Everyone profits.

I’m not familiar enough with the guts of cpuminer to be able to do (1) readily. If anyone else is and wants to volunteer _please_ let me know. If no one steps up then I’ll just try to find the time figure it out myself.

Number (2) is pretty straightforward after we have (1).

Is anyone else interested in this? Or are most folks planning to solo mine?

---

<div class="post-metadata">

### Author: ![Voluntary](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/voluntary/32/4343_2.png) [@Voluntary](https://forum.zcashcommunity.com/u/Voluntary)
#### Post date: [June 10, 2016, 4:54am UTC](https://forum.zcashcommunity.com/t/zcash-mining-pool/816/2 "2016-06-10T04:54:39Z")

</div>

As I understand it, pool mining a coin like bitcoin involves co-ordinating the miners so that they’re not needlessly reproducing each other’s work - they each get a certain portion of the nonce (and other variables) number space.

But, at this point, I don’t even know if an approach like that is applicable to Equihash. How can two or more ZCash miners collaborate on the same input data so that their computing power can reduce the time needed to solve the problem?

---

<div class="post-metadata">

### Author: ![maurya78](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@maurya78](https://forum.zcashcommunity.com/u/maurya78)
#### Post date: [June 10, 2016, 5:10am UTC](https://forum.zcashcommunity.com/t/zcash-mining-pool/816/3 "2016-06-10T05:10:12Z")

</div>

My understanding, admittedly evolving at this point, is that by choosing Equihash which is memor-based PoW, the system has been set up to be more supportive of solo mining. Not sure that pool mining is something they really want to see as that, with BTC at least, was the beachhead for centralised mining giants to emerge

---

<div class="post-metadata">

### Author: ![Austin-Williams](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@Austin-Williams](https://forum.zcashcommunity.com/u/Austin-Williams)
#### Post date: [June 10, 2016, 5:14am UTC](https://forum.zcashcommunity.com/t/zcash-mining-pool/816/4 "2016-06-10T05:14:55Z")

</div>

It actually works the same way as it does with bitcoin.

With Equihash we’re trying to find a V and subset of {x\_i} such that:  
H( I || V || x\_1) ⊕ H( I || V || x\_2 ) ⊕ · · · ⊕ H( I || V || x\_2^k ) = 0 (along with some other constraints).

Everyone in the pool will have a common I (the block we’re trying to solve) and {x\_i}. So we simply split up our search for V.

In practice it will work the same way it does for bitcoin (and other PoW alts): The miners query the pool server for I and {x\_i}. Then the miners (individually) choose a large random starting value for V. Then they increment V on each hash until someone finds a solution and broadcasts it to the network.

So, in principle, the only thing that needs to change in the cpuminer software is the hashing algo. The nonce-updating stuff remains the same.

---

<div class="post-metadata">

### Author: ![Shawn](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/shawn/32/187_2.png) [@Shawn](https://forum.zcashcommunity.com/u/Shawn)
#### Post date: [June 10, 2016, 9:21am UTC](https://forum.zcashcommunity.com/t/zcash-mining-pool/816/5 "2016-06-10T09:21:02Z")

</div>

If we can work out the specifics I would be up for joining. I’ll start digging into some research on the topic.

---

<div class="post-metadata">

### Author: ![Miki](https://avatars.discourse-cdn.com/v4/letter/m/df788c/32.png) [@Miki](https://forum.zcashcommunity.com/u/Miki)
#### Post date: [June 10, 2016, 12:22pm UTC](https://forum.zcashcommunity.com/t/zcash-mining-pool/816/6 "2016-06-10T12:22:51Z")

</div>

Wow, only noobs on this forum… What is this, 2013 ?!

---

<div class="post-metadata">

### Author: ![Shawn](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/shawn/32/187_2.png) [@Shawn](https://forum.zcashcommunity.com/u/Shawn)
#### Post date: [June 10, 2016, 12:36pm UTC](https://forum.zcashcommunity.com/t/zcash-mining-pool/816/7 "2016-06-10T12:36:05Z")

</div>

Yes noobs, and trolls apparently…

---

<div class="post-metadata">

### Author: ![Jason-1978](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/jason-1978/32/556_2.png) [@Jason-1978](https://forum.zcashcommunity.com/u/Jason-1978)
#### Post date: [June 12, 2016, 11:50pm UTC](https://forum.zcashcommunity.com/t/zcash-mining-pool/816/8 "2016-06-12T23:50:44Z")

</div>

Has Zcash thought about contacting this person? [http://solo.ckpool.org](http://solo.ckpool.org)  
Here is another link to his work [[∞ YH] solo.ckpool.org 2% fee solo mining USA/DE 255 blocks solved!](https://bitcointalk.org/index.php?topic=763510.msg8604106#msg8604106) and I do believe he set up litecoin and doge coin solo pools

---

<div class="post-metadata">

### Author: ![Austin-Williams](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@Austin-Williams](https://forum.zcashcommunity.com/u/Austin-Williams)
#### Post date: [June 13, 2016, 5:38am UTC](https://forum.zcashcommunity.com/t/zcash-mining-pool/816/9 "2016-06-13T05:38:17Z")

</div>

The pools part is actually pretty easy to set up. But setting up pools requires that we have standalone miners than can point to the pool.

So we first need to build a standalone miner for zcash that is capable of pointing to a pool.

---

<div class="post-metadata">

### Author: ![ZCasHash](https://avatars.discourse-cdn.com/v4/letter/z/eada6e/32.png) [@ZCasHash](https://forum.zcashcommunity.com/u/ZCasHash)
#### Post date: [June 13, 2016, 7:48am UTC](https://forum.zcashcommunity.com/t/zcash-mining-pool/816/10 "2016-06-13T07:48:01Z")

</div>

I’m really hoping both a GPU miner & pool come out close to the genesis launch.

I’ll mine on your pool Austin if you get one up and running!

---

<div class="post-metadata">

### Author: ![Jason-1978](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/jason-1978/32/556_2.png) [@Jason-1978](https://forum.zcashcommunity.com/u/Jason-1978)
#### Post date: [June 13, 2016, 11:20am UTC](https://forum.zcashcommunity.com/t/zcash-mining-pool/816/11 "2016-06-13T11:20:02Z")

</div>

He built cgminer I think he can help

---

<div class="post-metadata">

### Author: ![daira](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/daira/32/43253_2.png) [@daira](https://forum.zcashcommunity.com/u/daira)
#### Post date: [June 13, 2016, 3:49pm UTC](https://forum.zcashcommunity.com/t/zcash-mining-pool/816/12 "2016-06-13T15:49:30Z")

</div>

Please don’t discourage participation on this forum by newcomers to the Zcash or cryptocurrency community. If you’re looking for more technically focused discussion, I suggest the github issue tracker (which is not to say that technical discussion is discouraged here).

---

<div class="post-metadata">

### Author: ![daira](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/daira/32/43253_2.png) [@daira](https://forum.zcashcommunity.com/u/daira)
#### Post date: [June 13, 2016, 3:54pm UTC](https://forum.zcashcommunity.com/t/zcash-mining-pool/816/13 "2016-06-13T15:54:39Z")

</div>

On the issue of mining centralisation, I would _strongly_ encourage people to focus on decentralised mining approaches such as P2Pool, rather than centralised pools requiring greater trust in the pool operators – who are then in a position to launch attacks on the network and other users. (P2Pool isn’t ideally decentralised but it is a step in the right direction.)

---

<div class="post-metadata">

### Author: ![Austin-Williams](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@Austin-Williams](https://forum.zcashcommunity.com/u/Austin-Williams)
#### Post date: [June 13, 2016, 7:36pm UTC](https://forum.zcashcommunity.com/t/zcash-mining-pool/816/14 "2016-06-13T19:36:59Z")

</div>

Oh I see. Awesome idea! I’ll try to find time to reach out to him.

---

<div class="post-metadata">

### Author: ![Austin-Williams](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@Austin-Williams](https://forum.zcashcommunity.com/u/Austin-Williams)
#### Post date: [June 13, 2016, 7:39pm UTC](https://forum.zcashcommunity.com/t/zcash-mining-pool/816/15 "2016-06-13T19:39:52Z")

</div>

I completely agree with this. And pools created early on will benefit from a network effect. So if the first pools created are P2Pools that could have a strong positive influence on the decentralization of zcash mining in the long run.

---

<div class="post-metadata">

### Author: ![Shawn](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/shawn/32/187_2.png) [@Shawn](https://forum.zcashcommunity.com/u/Shawn)
#### Post date: [June 13, 2016, 8:56pm UTC](https://forum.zcashcommunity.com/t/zcash-mining-pool/816/16 "2016-06-13T20:56:54Z")

</div>

@Austin-Williams @Jason-1978 I know some are busy now so I have sent Con Kolivas an email to see if he can help with building a miner, I linked to this thread so hopefully he will join the conversation or email me back.  
I will let everyone know if he contacts me.

---

<div class="post-metadata">

### Author: ![Jason-1978](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/jason-1978/32/556_2.png) [@Jason-1978](https://forum.zcashcommunity.com/u/Jason-1978)
#### Post date: [June 13, 2016, 11:35pm UTC](https://forum.zcashcommunity.com/t/zcash-mining-pool/816/17 "2016-06-13T23:35:14Z")

</div>

Very good I’m happy to see my idea wasn’t thrown aside, I can’t be of any help with Zcash other than support. I am very excited to see this launch. I believe.

---

<div class="post-metadata">

### Author: ![Austin-Williams](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@Austin-Williams](https://forum.zcashcommunity.com/u/Austin-Williams)
#### Post date: [June 14, 2016, 3:22am UTC](https://forum.zcashcommunity.com/t/zcash-mining-pool/816/18 "2016-06-14T03:22:21Z")

</div>

Awesome, thank you! Please keep me updated.

---

<div class="post-metadata">

### Author: ![Shawn](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/shawn/32/187_2.png) [@Shawn](https://forum.zcashcommunity.com/u/Shawn)
#### Post date: [June 16, 2016, 11:53am UTC](https://forum.zcashcommunity.com/t/zcash-mining-pool/816/19 "2016-06-16T11:53:12Z")

</div>

Just as an update, I didn’t get a reply from Con Kolivas about the cpuminer. I’m guessing that we are on our own for reverse engineering the Zcash miner for a pool set-up, at least until the developers can get to it.

Also as @daira mentioned, P2Pool may be a great solution for mining pool set up. I found this handy guide for P2Pool: [A guide for mining efficiently on P2Pool, includes FUD repellent and FAQ](https://bitcointalk.org/index.php?topic=153232.0)

---

<div class="post-metadata">

### Author: ![Austin-Williams](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@Austin-Williams](https://forum.zcashcommunity.com/u/Austin-Williams)
#### Post date: [June 16, 2016, 6:53pm UTC](https://forum.zcashcommunity.com/t/zcash-mining-pool/816/20 "2016-06-16T18:53:28Z")

</div>

Thanks for the update.

Once we get a stand alone miner we can implement any kind of pool we want. P2pool is slightly harder to set up, but well worth it the long run IMHO. In a perfect world,the first public Zcash pool would be a p2pool setup. First movers have a huge network-effect advantage, and I think it’d be great if a p2pool type pool showed up early.

I’m wrapping up some Amazon EC2 mining setup/tests, and then I plan to see if I can figure out how to make a standalone miner.

I’ll keep you updated.

[Next page](https://forum.zcashcommunity.com/t/zcash-mining-pool/816.md?page=2)
