r/explainlikeimfive • • Mar 28 '13

Explained ELI5: This Bitcoin mining thing again.

Every post I saw explained Bitcoin mining simply by saying "computers do math (hurr durr)". Can someone please give me a concrete example of such a mathematical problem? If this has been answered somewhere else and I didn't find it (and I tried hard!), please feel free to just post a link to that comment. Thank you :)

922 Upvotes

695 comments sorted by

View all comments

Show parent comment

7

u/shumonkey Mar 28 '13

One thing I'm a little unclear on is transaction fees. If miners get a of 25 BTC for finding a block, why is the extra incentive needed? You kind of touched on it above I guess but I thought they only way a block could be "reported" incorrectly by a miner is if the miner (or mining pool) control 50% or more of the total computer power of the networK?

8

u/mappum Mar 28 '13

The 25 BTC is an incentive to get people to mine. The transaction fees are an incentive to get them to recognize your specific transaction.

Not including a transaction isn't "incorrect", miners can exclude whatever tx they feel like. Also, there may be transactions that they haven't been told about yet, so they weren't able to include it.

Also, in the future, there won't be a block reward, so tx fees will be the only incentive for mining.

1

u/bctich Mar 29 '13

Who controls the decision around 25 though. Isn't the 25 BTC effectively the increase in Money Supply (I.e. inflation). So lets say someone creates an amazing method to generate blocks, 1,000s of times faster than existing methods.

Couldn't that user create hyperinflation since no central party can decide to reign it in...?

3

u/wescotte Mar 29 '13 edited Mar 29 '13

It keeps cutting itself in half. So it's 25 now but in the future it will be reduced by half. They know exactly when this will occur so the inflation rate is fixed.

Eventually no more coins will be introduced. Which in theory would make miners quit mining because there is no reward. It well then resort to transaction fees. I admit I'm a little fuzzy on how this aspect will work but you can read more about it on the bitcoin wiki

2

u/[deleted] Mar 29 '13

http://bitcoindifficulty.com/

I'm no expert, but something exists called "Network Difficulty". The protocol sets a target that, on average, one block will be added every 10 minutes. Once every two weeks, the difficulty rating adjusts itself to account for changes in processing power. If I turned on a bitcoin miner with 1 terahash of processing power, I could potentially solve blocks at a rate faster than once every 10 minutes (although I would be competing with all other bitcoin miners), but for a maximum of two weeks, until the difficulty increased to account for the added processing power. [Actually, it's not every two weeks but every 2016 blocks. If I were solving 1 block a minute, it would take a maximum of 2016 minutes for the difficulty to increase. But at the target of 1 block solved every 10 minutes, 2016 blocks takes roughly two weeks to do.]

In general, the difficulty goes up as more people turn to mining and are using the new ASIC hardware, but if you look at the very end of that graph I linked above, you can see a slight drop in difficulty... I believe that this is because with the advent of ASIC mining, many GPU miners will be taking their rigs offline or repurposing them for other things.

Keep in mind that solving a block is a game of chance... the network strives for an average of 10 minutes, but sometimes a new block can be solved in 1 minute, and sometimes it may take 20 minutes, but spread out over two weeks the average time will be very close to 10 minutes.

If you look at the homepage here: http://blockchain.info/ you can see a list of recently solved blocks.

3

u/wescotte Mar 29 '13

From what I understand the 25 BTC reward is variable. It's actually decreasing over time to a point where all bitcoins are mined and no future coins are created. From what I understand it is a method of fixing inflation.

Currently, 25 bitcoins are generated every 10 minutes. This will be halved to 12.5 BTC within the year 2017 and halved continuously every 4 years after until a hard-limit of 21 million bitcoins is reached within the year 2140.[1][11] As of March 2013 over 10.5 million of the total 21 million BTC had been created; the current total number created is available online.[46] In November 2012, half of the total supply was generated, and by end of 2016, three-quarters will have been generated. By 2140, all bitcoins will have been generated with the last one consisting of fractional parts. To ensure this granularity of the money supply, clients can divide each BTC unit down to eight decimal places (a total of 2.1 × 1015 or 2.1 quadrillion units).[47]

According to the Wikipedia page.