Bitcoin Forum

Bitcoin => Mining => Topic started by: uchalkql on December 05, 2016, 02:39:21 PM



Title: Would be mining necessary if double-spending was not a problem?
Post by: uchalkql on December 05, 2016, 02:39:21 PM
Hi,

Is mining only used to prevent double-spending and to generate new bitcoins, or there are other reasons?

Thank you!


Title: Re: Would be mining necessary if double-spending was not a problem?
Post by: BigBoom3599 on December 05, 2016, 03:19:21 PM
Mining is also used as a consensus algorithm, if there's a fork on the network every node will choose the longest chain as the winning one. This makes it expensive to vote on a fork (by pointing your mining power towards it). If there were only nodes as a consensus algorithm, it would be "cheap" to create many votes and thus easy for a bad guy to abuse.


Title: Re: Would be mining necessary if double-spending was not a problem?
Post by: uchalkql on December 05, 2016, 03:38:03 PM
Mining is also used as a consensus algorithm, if there's a fork on the network every node will choose the longest chain as the winning one. This makes it expensive to vote on a fork (by pointing your mining power towards it). If there were only nodes as a consensus algorithm, it would be "cheap" to create many votes and thus easy for a bad guy to abuse.
Thank you.
But why would we need blocks if there wasn't double-spending problem? Nodes would only contain the transactions. No blocks, no forks.


Title: Re: Would be mining necessary if double-spending was not a problem?
Post by: BigBoom3599 on December 05, 2016, 04:02:46 PM
Mining is also used as a consensus algorithm, if there's a fork on the network every node will choose the longest chain as the winning one. This makes it expensive to vote on a fork (by pointing your mining power towards it). If there were only nodes as a consensus algorithm, it would be "cheap" to create many votes and thus easy for a bad guy to abuse.
Thank you.
But why would we need blocks if there wasn't double-spending problem? Nodes would only contain the transactions. No blocks, no forks.
Sure, but how would change/upgrade the protocol (Segwit for example)? There's no way to see how many votes a certain fork has without blocks.


Title: Re: Would be mining necessary if double-spending was not a problem?
Post by: steven0021 on December 05, 2016, 04:27:23 PM
Mining is also used as a consensus algorithm, if there's a fork on the network every node will choose the longest chain as the winning one. This makes it expensive to vote on a fork (by pointing your mining power towards it). If there were only nodes as a consensus algorithm, it would be "cheap" to create many votes and thus easy for a bad guy to abuse.
Thank you.
But why would we need blocks if there wasn't double-spending problem? Nodes would only contain the transactions. No blocks, no forks.

No, blocks are needed for lots of things. It's the way bitcoin is made.
In the first place a node can have a different transaction from the rest of the network and won't have any way of knowing which transaction is conflicted for real if they don't download blocks.


Title: Re: Would be mining necessary if double-spending was not a problem?
Post by: uchalkql on December 05, 2016, 07:40:40 PM
No, blocks are needed for lots of things. It's the way bitcoin is made.
In the first place a node can have a different transaction from the rest of the network and won't have any way of knowing which transaction is conflicted for real if they don't download blocks.
Hi. Thank you.
They would need to update the transactions. The same way today they need to keep the blocks updated.


Title: Re: Would be mining necessary if double-spending was not a problem?
Post by: steven0021 on December 05, 2016, 09:50:30 PM
No, blocks are needed for lots of things. It's the way bitcoin is made.
In the first place a node can have a different transaction from the rest of the network and won't have any way of knowing which transaction is conflicted for real if they don't download blocks.
Hi. Thank you.
They would need to update the transactions. The same way today they need to keep the blocks updated.

Not possible with the current implementation of bitcoin, sorry.


Title: Re: Would be mining necessary if double-spending was not a problem?
Post by: Wilhelmus on December 06, 2016, 07:15:59 AM
Yes of course it would ! Mining is still the way to perform any kind of transactions, and of course to create new blocks. Mining is the core principle of Bitcoin.