Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: redigaffi on January 16, 2018, 10:55:13 AM



Title: Blockchain and updates
Post by: redigaffi on January 16, 2018, 10:55:13 AM
Hello folks, got a small question.

Let's imagine I create a PoW coin, there jump in 50 miners (so 50 nodes). What would happen if I want to update the code?

- Miners can refuse to update? (that would create a fork?)
- And what if my cryptocurrency updates automatically? would this be correct? why isn't bitcoin doing this? (to avoid that miners refuse the update, or even remove the reward for nodes that are outdated, could this work?)

Thanks!


Title: Re: Blockchain and updates
Post by: Xynerise on January 16, 2018, 12:01:03 PM
Hello folks, got a small question.

Let's imagine I create a PoW coin, there jump in 50 miners (so 50 nodes). What would happen if I want to update the code?

- Miners can refuse to update? (that would create a fork?)
If the code update doesn't require a hard fork, nodes can choose not to update and don't really lose anything because it will be backward compatible.
If it's a radical change that requires a hard fork (eg increasing the block size), then ALL nodes need to update or else they'll be cut off from the network and will be running a different blockchain entirely.

Quote
And what if my cryptocurrency updates automatically? [/quotes]
Updates to the code are implemented by updates to the node software, so people running nodes need to choose whether they'll update or not.

Quote
would this be correct? why isn't bitcoin doing this? (to avoid that miners refuse the update, or even remove the reward for nodes that are outdated, could this work?)

Thanks!
If you force nodes to update or be kicked out of the network that is equivalent to a hardfork.
Updates are usually backwards compatible so a person running an old version of a node can be interact with new nodes without great loss of functionality.


Title: Re: Blockchain and updates
Post by: aleksej996 on January 16, 2018, 01:16:20 PM
- And what if my cryptocurrency updates automatically? would this be correct? why isn't bitcoin doing this? (to avoid that miners refuse the update, or even remove the reward for nodes that are outdated, could this work?)

Because it is useless to have a cryptocurrency that isn't open source. And if the code is open source, you can't force anyone to do anything.
If forks want to exist, they will exist, there is nothing you can do about it.


Title: Re: Blockchain and updates
Post by: Backend on January 17, 2018, 10:44:53 PM
You can control the timing of the forks.  Similar to politics controlling everything else.


Title: Re: Blockchain and updates
Post by: gold1112 on January 18, 2018, 01:40:28 AM
You can control the timing of the forks.  Similar to politics controlling everything else.

But you can't control blockchain. Also politics can't. It is the main power of blockchain!