Bitcoin Forum

Bitcoin => Mining => Topic started by: Gustavotonini on August 30, 2017, 01:16:11 AM



Title: Creating nonsense fork in blockchain
Post by: Gustavotonini on August 30, 2017, 01:16:11 AM
It is just a stupid question. Imagine if I start mining over an old block which already has many subsequent blocks, find a new block and submit to the network. Will they accept it and create a nonsense fork?

I know it is the longest chain that really matters, but would the network accept my block, creating the new fork or simply reject it?


Title: Re: Creating nonsense fork in blockchain
Post by: os2sam on August 30, 2017, 10:23:53 AM
It is just a stupid question. Imagine if I start mining over an old block which already has many subsequent blocks, find a new block and submit to the network. Will they accept it and create a nonsense fork?

I know it is the longest chain that really matters, but would the network accept my block, creating the new fork or simply reject it?

Only work for the current block is sent out.  If you submit a hash for a past block it will be rejected, probably as stale or not meeting current difficulty.


Title: Re: Creating nonsense fork in blockchain
Post by: reee on August 30, 2017, 09:28:58 PM
That block will be simply orphaned.
To do a fork you need to make your own client with its specific rules, and distribute it to people who will use it.


Title: Re: Creating nonsense fork in blockchain
Post by: Gustavotonini on August 31, 2017, 12:58:13 AM
Yeah I understand the block would become orphaned. But would the other nodes add it to their databases or reject it?


Title: Re: Creating nonsense fork in blockchain
Post by: os2sam on August 31, 2017, 01:40:23 AM
Yeah I understand the block would become orphaned. But would the other nodes add it to their databases or reject it?

It would not be orphaned.  Work for old blocks is no longer sent.  Only work for the current block is sent.  So hashes for past blocks would be rejected.