Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: clinton on August 18, 2011, 06:00:06 AM



Title: Pooled mining question
Post by: clinton on August 18, 2011, 06:00:06 AM
Can a miner contributing to a pool know when they solve the block?

If so, could a mean miner not contribute any blocks they solve, getting coins from the pool whilst never contributing anything useful back?

I know this wouldn't help the mean miner, but it would hurt the pool operator and all other users of the pool.


Title: Re: Pooled mining question
Post by: kjj on August 18, 2011, 12:01:10 PM
Yes.


Title: Re: Pooled mining question
Post by: zellfaze on August 18, 2011, 03:35:09 PM
Could they take it further and just use the solved block themselves?

Collect the generation reward for themselves whilst still being paid by the pool for the efforts that they are never truly contributing with.


Title: Re: Pooled mining question
Post by: kjj on August 18, 2011, 11:55:59 PM
No.


Title: Re: Pooled mining question
Post by: zellfaze on August 19, 2011, 01:29:06 AM
No.

Why not?  If I can tell I solved a block, and I can fail to relinquish said solved block, why couldn't I just claim it as my own?

Nevermind...  I think I figured out why.  The pool would have already dictated the address that the reward would go to.


Title: Re: Pooled mining question
Post by: kjj on August 19, 2011, 02:10:56 AM
No.

Why not?  If I can tell I solved a block, and I can fail to relinquish said solved block, why couldn't I just claim it as my own?

Nevermind...  I think I figured out why.  The pool would have already dictated the address that the reward would go to.

That is the one reason.  The other is that the miner doesn't have the whole block, it only has the header.

These two reasons are sorta related, in that the miner could figure out most of the block by looking at permutations of combinations of pending transactions on the network, but it can't make a coinbase that would let the whole thing hash to meet the solved header unless it already knows the private key the pool used.  And if it already knows that, it might as well just wait 100 blocks and race to spend the reward before the pool does.