0

This question already has an answer here:

like as we create a new block , so it will connected to existing Blockchain or it will create a new blockchain?

marked as duplicate by dark knight, chytrik, Raghav Sood, Anonymous, dbkeys Oct 5 '18 at 10:12

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • @darkknight: The other way around. This one was first. ;) – Murch Sep 25 '18 at 17:07
2

Yes, every block (except the first one) gives reference to the previous block, and it's not possible to change a part of the block without invalidating it.

To create an altcoin, you have two options:

1) Fork the blockchain by using invalidateblock, which permanently considers a block and the following blocks invalid, then create your alternative chain.

2) Generate a blockchain starting from the genesis block.

1

Every block contains the hash of the preceding block in the header. It follows that you can go back block by block until you reach the genesis block.

This structure has a few interesting properties:

  1. Every block reconfirms all preceding blocks.
  2. There can only be a single block at the same height that is part of the most-work chain.

Sometimes, two miners succeed at the same time and publish two competing blocks at the same time. Since a new block can only commit to one predecessor, one of the two competing blocks will form a stale blockchain-tip that is not part of the most-work chain.

  • No i Just Want to know that as we are creating a new block that is first block so it will connect to the existing blockchain in the world or it will create a new blockchain? – Kriti Joshi Sep 25 '18 at 8:11
  • A new genesis block would not connect to the existing blockchain. How would it otherwise be the first block? ;) – Murch Sep 25 '18 at 15:20

Not the answer you're looking for? Browse other questions tagged or ask your own question.