Homework on Stale Blocks

  1. The blockchain splits in two until the creation of the next block which will attach to one of the two blocks created at the same time. At this point only the longest blockchain will continue to “exist” and the other block will be dropped (stale block).
  2. It is a block that is not considered in the blockchain. The transactions inside it will be put back into the mempool.
  3. Look at the first answer.
  4. It is important that a transaction is confirmed multiple times (6) in subsequent blocks to prevent it from being deleted due to a stale block.
1 Like

1/ They both broadcast the new addition to the chain
2/ A stale block is a valid block that is part of a chain that was competing against a ‘better/faster’ chain
3/ Stale blocks occur when there are competing blockchains on the network. There are two version of the blockchain and the network does not agree on which one is the truest one.
4/ Your transaction might be part of a stale block. It is important to wait to be sure to be in the longest chain

1 Like
  1. Two unconfirmed, legitimate blocks are created.
  2. & 3. One of those blocks becomes stale when the other is joined to a new unconfirmed block.
  3. Waiting until receiving six confirmations of other subsequent blocks ensures your transactions has been shared across the ledger network.
1 Like
  1. What happens in the bitcoin network when two miners solve a block at the same time? >> the block with the next block linked counts, the transactions of the other block wend back to the mempool
  2. What is a stale block? >> a correct block in the shorter chain which wends back to the mempool if there are two correct blocks attached to the blockchain at the same time
  3. How do stale blocks occur? >> two correct blocks at the same time and the other one wins the “race” by getting the next block attached
  4. Why is it important to wait for more than one block to be confirmed when sending or receiving a transaction? >> because in case of a stale block the transactions can get rejected and Dave to be mined again
1 Like

It doesn’t require to be confirmed 6 times.
If 2 miners mine a block at the same time, you create 2 versions of truth with 2 different valid blockschains. Then it mostly depends on wich of those 2 chains the next miner mines the next block ontop. (creating a longer chain than the other version)

  1. What happens in the bitcoin network when two miners solve a block at the same time?
    It creates two valid chains, until the next block is solved and added to one of these chains, in which case the network orphans the shorter chain. All transactions from the now shorter chain are returned to the meme pool.

  2. What is a stale block?
    A block that was rejected because it is not the longest confirmed chain.

  3. How do stale blocks occur?
    They occur when two miners both mine a block at the same time, before the next block is mined and confirms one of the valid chains.

  4. Why is it important to wait for more than one block to be confirmed when sending or receiving a transaction?
    because as time passes it makes it unlikely that a transaction in a block can end up not being confirmed as the longest chain. After 6 confirmations, you can be fairly certain that you transaction was included in the longest chain and is valid.

1 Like
  1. They create 2 blockchain until 1 of those chains won’t become at least 1 block longer than the the other.
  2. the block that once was in the block chain but was removed.
    3 when there is more than 1 link of blockchain the the longest link(in terms of number of blocks) will stay and all the other links and blocks connected to it will be removed and be called stale blocks.
    4 to prevent the system from having stale blocks.
1 Like

Ok thanks for the clarification.

1 Like
  1. When two miners solve two different blocks at the same time a third miner will choose one of the blocks to connect his new block.
  2. Stale blocks are blocks that are dropped by the nodes.
  3. Stale blocks occur when two blocks are mined at the same time. The network will prefer one block over the other. The rejected block is now stale.
  4. It’s important to wait so we make sure the transaction is valid.
1 Like
  1. Can happen that in the same moments two perfectly valid but different version of the blockchain exists on different nodes. The chosen one is the one containing the greatest amount of work and this usually means that the chosen one is the one over which a new miner append his freshly mined block. The rejected version of the blockchain drops the different block which becomes a stale block.
  2. A block dropped by the blockchain.
  3. Two different miners mine almost simultaneously different perfectly valid blocks and append them to the blockchain, creating two different copies. One must be rejected.
  4. This lower significantly the probability for the block to become stale as the blockchain to whom it belongs has been used for quite some time
1 Like
  1. the bitcoin network will eliminate one of the block depend on the longest chain available when the next 6 blocks are created
  2. A block that are being removes from the chain because it had been left behind the creation of new chain
  3. by having two blocks at the same time and they are competing with each other for the longest chain, and when one of them lose, they become a stale block
  4. to make sure the block is in the longest chain, so the transaction can move faster

What happens in the bitcoin network when two miners solve a block at the same time?
There will be 2 versions of the blockchain online. either one is correct.

What is a stale block?
A stale block is a block that has been created because 2 blocks where solved at the same time.
Because there where 2 truths to the blockchain, the next block that would be solved gets put on one side of these blockchains.
This makes one chain longer than the other. The blockchain will continue on that chain and the block that was on the other part of the chain gets dropped by the network.
All transactions in that block are sent back in the mempool.

How do stale blocks occur?
When the network chooses the other side of the chain, a fork, because that chain is longer.

Why is it important to wait for more than one block to be confirmed when sending or receiving a transaction?
In order to be sure that the block the transaction is on is actually on the blockchain and not in a block that will be dropped by it being a stale block.
The chance of this happening after 6 blocks is almost 0.

1 Like
  1. What happens in the bitcoin network when two miners solve a block at the same time?

They add a new block to the blockchain so the chain split in two but then only one chain, the one with following blocks survives
2. What is a stale block?
It’s a block that has been mined but was left without a following since there was a longer chain
3. How do stale blocks occur?
different miners find a valid hash to add a new block at the same time
4. Why is it important to wait for more than one block to be confirmed when sending or receiving a transaction?
because if various miners mint a block at the same time the part of the chain with the transaction could be abandoned thus making the transaction invalid (not happened in the blockchain)

1 Like
  1. Both blocks are added to the blockchain. This will temporarily create two blockchains. When the next block is added, the shorter blockchain will be removed.
  2. A stale block is a confirmed block that is removed from the blockchain.
  3. A stale block occurs when the blockchain is replaced by a longer blockchain.
  4. You want to make sure the block doesn’t become a stale block which would result in an invalid transaction.
2 Likes
  1. What happens in the bitcoin network when two miners solve a block at the same time?
    Nodes will accept the first block they’ve seen, until eventually another block is mined, making one of the chains longer, and resolving the chain fork. The longest chain will win.

Nodes that were using the wrong block will release it (become a stale block) and switch to the winning block. Transactions from the losing block that aren’t also in the winning block will be put back in the mempool.

  1. What is a stale block?
    A stale block is the losing block that is not accepted on the blockchain because the winning block was part of a longer chain.

  2. How do stale blocks occur?
    Stale blocks occur when it was part of the blockchain, however was dropped because the blockchain accepted a blockchain that was longer in length. Any transactions that were part of the stale block and not on the winning block is accepted back into the Mempool.

  3. Why is it important to wait for more than one block to be confirmed when sending or receiving a transaction?
    There is a possibility that the block your transaction is associated with, might be dropped. So it’s best practice to wait 6 block confirmation to be sure your transaction is confirmed to a block. Hence why the 10 minute rule applies to bitcoin.

1 Like

When 2 miners mine a block at the same time, (on the same blockheight) there will be 2 valid version of truth. (accidental fork) then it depends on wich blockchain the next miner successfully mines a new block wich makes 1 version a longer blockchain than the other. Transactions in the The block on the shorter blockchain will end up in the mempool, waiting to be confirmed again by a miner. (in case some they were not included in the other block already)

1 Like

It doesn’t need to have 6 confirmations. Waiting for more confirmations for a transaction gives you more security that the transaction will stay on the blockchain. After 6 confirmations the likelihood that your transaction will drop is almost zero. The common rule is the longest blockchain wins in case of more valid blockchains exists. When 2 miners mine a block at the same time, it mostly depends on wich blockchain the next miner will mine on top. (wich creates a longer chain)

If two miners create a block in the same time, it is up to the following miners who are linking the upcoming block to choose which block they link (could be that he got the block earlier). The remaining block will then be dropped and transactions back to the mempool. The dropped blocks are called orphan blocks or stale blocks.

Since blocks need 10 min to be created, the difficulty needs to be adjusted based on the number of the miners (hash rate) in order to maintain the time. We keep it at 10 min because we want to propagate it around the world, to get one version of the truth worldwide, and want to minimize the possibility of having stale blocks.

As such a confirmed transaction is a transaction in a valid block, appended to the Blockchain and confirmed by 6 following blocks.

  1. They both exist until another miner comes in and choses to mine the next block on one of them, then the other one gets dropped from the chain

  2. It is the block that gets dropped

  3. When two miners solve a block at the same time and only one of them gets chosen to be continued on, the other one is then called a stale block

  4. Because the transaction might be in a stale block which means it will be sent back to the mempool to await being picked up by a miner

1 Like

It doesn’t need to have 6 confirmations to add this block. Waiting for more confirmations for a transaction gives you more security that the transaction will stay on the blockchain. After 6 confirmations the likelihood that your transaction will drop is almost zero. The common rule is the longest blockchain wins in case of more valid blockchains exists. When 2 miners mine a block at the same time, it mostly depends on wich blockchain the next miner will mine on top. (wich creates a longer chain)

1 Like