<blockquote>
  <p>The way I understand mining is that you hash the previous block hash
  with the new transaction files and a variable to get certain amount of
  zero in the hash.</p>
</blockquote>

<p>You have chain A-B-C-D- , you create a new block, E, with its header (with variable called <em>nonce</em> and a reference to D's header hash) and body (the new transactions). You change the nonce in E's header and then hash the header. This hash should have certain amount of zeros.</p>

<blockquote>
  <p>So the stronger your hash power is the faster you
  find the new block hash. </p>
</blockquote>

<p>True, but searching the correct hash means guessing the nonce from entire range of nonces, and everybody guesses their own variable. So the fastest computer will only have highest number of guesses. This doesn't mean someone else with only a few guesses won't guess it first. Like in a lottery, the guy who buys 1000 tickets is not sure to win comparing to the guy who bought 2 tickets, he just has better odds.</p>

<blockquote>
  <p>and how do they get rewarded ?</p>
</blockquote>

<p>Only the one who guessed the hash is rewarded.</p>

<blockquote>
  <p>because the websites that offers hashing powers shows your balance to be
  continuously increasing and not as expected to increase step by step
  with each hash found.</p>
</blockquote>

<p>If this site is a <em>mining pool</em> it gives rewards by some strategy, rather than giving the reward to the one who finds the hash at the moment when he finds the hash.</p>

CC BY-SA 3.0
2017-11-18T20:54:01.987Z
- So the variable "nonce" is not just a number that get incremented with each failled hash, because this way the stronger win every time. Rather the nonce is guess randomly, is this correct ?
-
user64980
CC BY-SA 3.0
2017-11-18T20:57:42.893Z
Not exactly like that, but in the sense of the question it is analogue as if they choose the "nonce" randomly.
croraf
CC BY-SA 3.0
2017-11-18T21:00:27.610Z
In reality they probably increment the nonce from 0, but there are other fields in the header that contribute the calculated hash, fields each miner has different. And entire header is input into hash calculation not just nonce, so "same nonce + different other fields" give rise to the situation that they don't guess with same inputs (they have different lottery tickets).
croraf
CC BY-SA 3.0
2017-11-18T21:05:37.287Z
and for the websites I am talking about websites where you buy hashing power  and they mine and send you the profit. In these websites you can see your balance increasing continuously every second, and some websites calculate the amount of bitcoin you get depending on your hashing power ! but the way you explained it: no matter how much hashing power, every 10 min you will be either rewarded or not ! so what is wrong with these website ?
user64980
CC BY-SA 3.0
2017-11-18T21:10:37.107Z
They average profit in time. BTC is mined, so reward given, every 10min (roughly), not steadily per second or so. And the site gets rewarded every couple of hours probably (or maybe even every couple of days or so) - only when THEY and not someone else mine a correct block (hash) with some of your hardware.
croraf
CC BY-SA 3.0
2017-11-18T18:21:36.333Z
2017-11-18T18:21:36.333Z
croraf
<p>When mining in a pool, you're rewarded proportionally by the hash rate you provide versus the total hash rate of the entire pool, or some variation on the theme.</p>

<p>The probability of finding a valid block hash is such that one block will be found in around 10 minutes regardless of the total hash power of the entire network.  This is the "difficulty" number at work.  Therefore, unless you control 51% or more of total network hash power, you are no more likely than anyone else to find the solution for the next block.</p>

CC BY-SA 3.0
2017-11-18T15:01:50.690Z
2017-11-18T15:01:50.690Z
Hannah Vernon
<p>The way I understand mining is that you hash the previous block hash with the new transaction files and a variable to get certain amount of zero in the hash. So the stronger your hash power is the faster you find the new block hash. My problem is that thinking about it this way means that only the one with the highest hashing power will find the block first and get rewarded, then what are the others with lower hashing powers doing ? and how do they get rewarded ?</p>

<p>and do you get rewarded when you find the hash or you get rewarded every second of mining proportionally to your hashing power ? because the websites that offers hashing powers shows your balance to be continuously increasing and not as expected to increase step by step with each hash found.</p>

CC BY-SA 3.0
2017-11-19T21:17:38.093Z
Hello user64980, please only ask one question per question post.
Murch
<mining-theory>
how bitcoin mining works
user64980
# how bitcoin mining works

(Asked by: username_0 on 2017-11-18)

The way I understand mining is that you hash the previous block hash with the new transaction files and a variable to get certain amount of zero in the hash. So the stronger your hash power is the faster you find the new block hash. My problem is that thinking about it this way means that only the one with the highest hashing power will find the block first and get rewarded, then what are the others with lower hashing powers doing ? and how do they get rewarded ?

and do you get rewarded when you find the hash or you get rewarded every second of mining proportionally to your hashing power ? because the websites that offers hashing powers shows your balance to be continuously increasing and not as expected to increase step by step with each hash found.

**Tags:** mining-theory

> **Comments:**
> **username_1**: Hello username_0, please only ask one question per question post.  

---

## 2 answers

### Answer by username_2 on 2017-11-18. Score: 1

> The way I understand mining is that you hash the previous block hash
> with the new transaction files and a variable to get certain amount of
> zero in the hash.

You have chain A-B-C-D- , you create a new block, E, with its header (with variable called *nonce* and a reference to D's header hash) and body (the new transactions). You change the nonce in E's header and then hash the header. This hash should have certain amount of zeros.

> So the stronger your hash power is the faster you
> find the new block hash.

True, but searching the correct hash means guessing the nonce from entire range of nonces, and everybody guesses their own variable. So the fastest computer will only have highest number of guesses. This doesn't mean someone else with only a few guesses won't guess it first. Like in a lottery, the guy who buys 1000 tickets is not sure to win comparing to the guy who bought 2 tickets, he just has better odds.

> and how do they get rewarded ?

Only the one who guessed the hash is rewarded.

> because the websites that offers hashing powers shows your balance to be
> continuously increasing and not as expected to increase step by step
> with each hash found.

If this site is a *mining pool* it gives rewards by some strategy, rather than giving the reward to the one who finds the hash at the moment when he finds the hash.

> **Comments:**
> **username_0**: - So the variable "nonce" is not just a number that get incremented with each failled hash, because this way the stronger win every time. Rather the nonce is guess randomly, is this correct ? -  
> **username_2**: Not exactly like that, but in the sense of the question it is analogue as if they choose the "nonce" randomly.  
> **username_2**: In reality they probably increment the nonce from 0, but there are other fields in the header that contribute the calculated hash, fields each miner has different. And entire header is input into hash calculation not just nonce, so "same nonce + different other fields" give rise to the situation that they don't guess with same inputs (they have different lottery tickets).  
> **username_0**: and for the websites I am talking about websites where you buy hashing power  and they mine and send you the profit. In these websites you can see your balance increasing continuously every second, and some websites calculate the amount of bitcoin you get depending on your hashing power ! but the way you explained it: no matter how much hashing power, every 10 min you will be either rewarded or not ! so what is wrong with these website ?  
> **username_2**: They average profit in time. BTC is mined, so reward given, every 10min (roughly), not steadily per second or so. And the site gets rewarded every couple of hours probably (or maybe even every couple of days or so) - only when THEY and not someone else mine a correct block (hash) with some of your hardware.  

---

### Answer by username_3 on 2017-11-18. Score: 0

When mining in a pool, you're rewarded proportionally by the hash rate you provide versus the total hash rate of the entire pool, or some variation on the theme.

The probability of finding a valid block hash is such that one block will be found in around 10 minutes regardless of the total hash power of the entire network. This is the "difficulty" number at work. Therefore, unless you control 51% or more of total network hash power, you are no more likely than anyone else to find the solution for the next block.


---

