3
I know is related to these:
What is the rationale behind Bitcoin mining?
Why do we need Proof of Work in bitcoin?
But I don't fully understand those answers, and I think usually is much easier to understand the concept if we know the problem it solves.
So, what will happen without mining and proof of work on Bitcoins? in a step by step example.
From what I understand mining is put a time and node limit to the block creation. Because if every node on the chain is allowed to create a new block at any time then we will have a lot of conflicts.
Is that the reason for mining? to limit the block creation?
And why some people say it avoids double spend?
EDIT: when I say mining I actually mean the proof of work, and all the rules (like block interval) about mining, I know mining is for validating blocks, but why we need the proof of work and made in that way (solving a difficult hash) and why we are limiting the blocks to 10min. What will happen if we allow blocks to be added every second with much easier hashes to solve for example? what will be the problem with this?
Hi David, thanks for the reply but this does explain nothing, you only say: "we need mining", but you are not explaining what will happen without mining and how exactly is mining solving that. What I can guess is that mining is there to make a limit on the "block" we can add, without mining all the nodes could validate the blocks and add them instantly, will be diificult to keep in sync all the chain across the network, with mining only one node can add a block a time (and every 10min). So is mining only to "slow" down and keep control of the new blocks added to the chain? – Enrique – 2018-06-21T14:46:07.047
@Enrique I wouldn't say only, but yes, that's the general idea. Mining ensures eventual agreement on which blocks will remain part of the chain. Your question was what would happen without mining, and it's that we would have no way to figure out which of two conflicting transactions everyone else would think is valid. – David Schwartz – 2018-06-21T16:52:43.790
I think my question was a bit confusing, I was referring to the way mining works (proof of work, block interval etc). I've edited it just in case – Enrique – 2018-06-21T20:59:23.790
Isn't it obvious? If Alice creates two conflicting transactions, it's essential that we eventually are able to agree on one of them. If it's easy to mine two long chains, one with each of the two conflicting transactions, how do we agree on one of them? – David Schwartz – 2018-06-21T21:12:38.923
So the important thing here is to forbid someway a lot of users can add a new block (only the ones who are able to solve a very difficult problem can, and this is normally one miner at a time?) and to "delay" the adding of new blocks to 10min? (and why 10min and not 5 for example?) – Enrique – 2018-06-21T21:24:09.077
The engineering considerations around the block time are quite complex. Other systems have made different block timing decisions and get a different mix of costs and benefits. – David Schwartz – 2018-06-22T17:52:41.080