Homework on Stale Blocks

The block wich get a new block attach will continue on the blockchain and the other is done and returnd to the mempool

Stale block are valid blocks that are removed from the blockchain

When to (ore more) miners get new block on same time

Ned time to look for stale blocks

1 Like

1. What happens in the bitcoin network when two miners solve a block at the same time?
Both of them will be accepted by the nearest nodes until another block will be created and linked to one of them. Network will accept the longest blockchain( more PoW) and reject the other. This block is so called orphaned or stale.
2. What is a stale block?
A block that was dropped from the blockchain.
3. How do stale blocks occur?
It occur when two miners mine a block at the same time. One of them become stale after rejection of the network.
4. Why is it important to wait for more than one block to be confirmed when sending or receiving a transaction?
To make sure that the transactions on the block are accepted by the whole network. Waiting will ensure that the block does not become a stale block.

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

A split in the chain occurs and now there are 2 different versions of truth. When another miner tries to append a block, it will attach it to one of the other chains - which makes that specific chain longer and tells the network that the longer chain has more POW’s than the other chain. The network then dumps the block from the “shorter” chain.

  • What is a stale block?
    A block that was in the blockchain but got dropped.

  • How do stale blocks occur?
    When 2 blocks have 2 different versions of truth and are sent to the blockchain at the exact same time and reside there until one is dropped by the network becuase the other block had more “proofs of work”. The dropped block is the stale block.

  • Why is it important to wait for more than one block to be confirmed when sending or receiving a transaction?

This helps insure that the block doesn’t get dropped since they all have fingerprints or previous blocks.

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

It all depends on the next valid block mined, as whichever previous block, of the 2 mined at same time, was recognized/used by the next mined block, that block will be accepted by the network, as it will be the longest chain, and the other blocked will be the “stale/orphaned” block, sending the transactions back to the menpool. Requiring 6 confirmations, as well as the 10 minute interval between blocks, aids in reducing stale/orphaned blocks.

  1. What is a stale block?

The orphaned block, or block that was the shorter chain of the two competing blocks, which was not accepted by the network, which results in sending transactions in that block back to mempool.

  1. How do stale blocks occur?

When two valid blocks are mined at same time, only one of those will be accepted by the network and the other will be dropped; the stale or orphaned block is the one dropped.

  1. Why is it important to wait for more than one block to be confirmed when sending or receiving a transaction?

To ensure immutability and prevent accidental double-spending.

1 Like

What do you mean? How would you know? :slight_smile:

1 Like

But two blocks have the same fingerprint of the previous block :slight_smile: why would this be important for the user that sent or received a transaction? :slight_smile:

1 Like

Confirmations are just a rule of thumb, don’t really influence the probability of stale blocks occurring, this is just to make sure the tx will not be dropped in case its part of a stale block. :slight_smile:

1 Like

ok, i understand - thank you

1 Like

1.When two miners solve a block at the same time, and both blocks are valid , it will be a bifurcation in the chain ,some nodes accept one block some others accept the other. Since the network validates the longer chain, it depends how many other blocks are connected with the two blocks, the ones with the more blocks connected after it, is the one which will stay in the blockchain, while the other gets dropped.
2. A stale block is a block dropped from the blockchain, and the transactions get sent back to the mempool.
3.The network favors longer chains ,so a stale block occurs when two miners come with a nonce at the same time and make a hash under the specific target. since both blocks are accepted , both are linked into the chain. the one block that has less blocks connected to it , gets dropped along with the ones connected to it, making them stale or orphaned.
4.It is important to wait at least six blocks before the transaction is confirmed , because it won’t happen if the block is dropped and becomes stale, thus the transaction will be sent back to the mempool.

1 Like

Thank you for clearing that up.

1 Like
  1. The blockchain splits and the longest one wins.
  2. A stale block is a block that is no longer valid because the other block was chosen by anothe rminer.
  3. In the blockchain split, a miner chose the other block so the unchosen block becomes a stale block.
  4. Transactions could be cancelled if blocks become stale blocks.
1 Like
  1. when two miners solve a block at the same time only one block will accepted and added to the chain. the other is now considered a Stale Block, or Orphan Block, and will go back to the mempool.

  2. a stale block is a block that got rejected from being added to the chain and is most likely now back in the mempool.

  3. Stale blocks occur when two miners complete blocks at the same time and try to add them to the chain. since only one will be added, the other becomes the stale block, or orphan block and is sent back to the mempool.

  4. it is important to wait for more than one block to be confirmed when sending or receiving a transaction because there is always the possibility that the block your transaction is in might get dropped. best policy is to wait for six blocks.

1 Like

Q1. What happens in the bitcoin network when two miners solve a block at the same time?
Two versions of blockchain will exist when two miners are successful in adding a block on blockchain at same time. If a third miner is successful in adding a new block on one of the version, that blockchain will be the longest and accepted by the network as single source of truth.The block (stale block) on other blockchain (shorter) will be dropped and its transactions are added back to the mempool.

Q2. What is a stale block?
Stale block is a block which was successfully added on blockchain but was dropped because the network selected longer blockchain which didn’t had this block.

Q3. How do stale blocks occur?
Explained in answer to Q1 above.

Q4. Why is it important to wait for more than one block to be confirmed when sending or receiving a transaction?
To ensure that the block having the transactions is not dropped and exists on the blockchain which is source of truth.

1 Like

1.- the network need to wait 10 min avg to figure out which block is consider with more POW not simply the longest one
2.- stale block or orphan block are simply blocks that were not chosen to be added to the chain based on POW, they are not appended to the chain
3.-stale blocks occur when miners produce a block with a different version of the truth that nodes consider valid
4.-an average of 10 minutes is required to finally append a block and have it finally confirmed, to avoid having stale blocks or forks on the network
4.-

1 Like
  1. The blockchain splits, and different versions of the blockchain are propagated through the network.
  2. A stale block occurs after a split in the blockchain, and one of those branches becomes longer than the other. Since the longer version of the blockchain is the one that is accepted by the network, all blocks on the shorter branch are dropped, and their transactions are returned to the mempool.
  3. Stale blocks occur when miners extend one version of the blockchain longer than the conflicting (but other valid) version. Blocks occurring after the deviation on the shorter chain are dropped, and their transactions are returned to the mempool.
  4. Due to this phenomenon of propagating different versions of the blockchain, there always exists the possibility that blocks can be dropped and transactions can be sent back to the mempool. Best practice advises not to consider a transaction “confirmed” until 6 blocks have been appended to the blockchain after the transaction in question.
1 Like
  1. Two version of truth are created in the blockchain because two miners solve in the same time the difficulty in the block.
    2._or orphaned blocks ,them are dropped from the blockchain because of the validation is not confirmed for the miners.
  2. When the blockchain has less validation in the blockchain .
    4._ the blockchain with more blocks and verifications is the continue of the version of truth of the blockchain, the miners relay in the blockchain with more length, is important yo wait for at least six confirmations.
1 Like
  1. What happens in the bitcoin network when two miners solve a block at the same time?
    The new blocks from both miners are then being propagated across the network of nodes over a time. In the end, only one block is added to the existing blockchain (only after another 6 blocks are added) and the the other block by the other miner gets stale and is dropped.

  2. What is a stale block?
    A stale block is a block that was mined as a valid block but didn’t get to be realized as part of the longest blockchain.

  3. How do stale blocks occur?
    Multpiple miners all over the world compete in mining new blocks at the same time. Due to physical travel of the information that takes time, the propagation of the new blocks across the network occurs unevenly and only the blocks within the longest blockchain are confirmed. The ones which aren’t become stale and their transactions are sent back to Mempool.

  4. Why is it important to wait for more than one block to be confirmed when sending or receiving a transaction?
    To overcome communication delays among the nodes across the globe to ensure that the block is definitely part of the current longest blockchain. It has been agreed on that it can be confirmed after 6 another blocks added.

1 Like
  1. They will each try to propagate the block to the rest of the network, but only the one with the longest chain (in terms of proof of work), will be added to the chain. The other block (the loser) will be returned to the mempool, despite being a completely valid block.

  2. A stale block is one of those blocks described above that gets returned to the mempool after losing the race to be added to the chain, even though it appeared to some nodes on the network to have been accepted.

  3. Stale blocks occur when two blocks are mined at the same time, but cannot be added to the chain at the same time, so one has to be dropped. Which block succeeds depends on the miners. The miners will go with the version of the chain that has the most proof of work, because that’s the one that will earn them the most rewards (i.e. block reward + transaction fees).

  4. It is important to wait for more than one block to be confirmed when sending or receiving a transaction to make sure that the transaction will not end up in an orphaned block. The standard confirmation time is six blocks.

1 Like

*** What happens in the bitcoin network when two miners solve a block at the same time?**
The blockchain will split into several chains , the longest chain is incorporated into the blockchain proper. The transactions in the other blocks will return to the mempool if they were not in the adopted block.
*** What is a stale block?**
A valid block which didnt make it into the blockchain because it was not in the longest chain . Tranactions contained go back into mempool if they are not in the blockchain from the block which was put there.
*** How do stale blocks occur?**
I think I explained that but they are valid blocks but were not put into the blockchain because they were not in the longest chain.
*** Why is it important to wait for more than one block to be confirmed when sending or receiving a transaction?**
Because although confirmed the block may become stale so its best to wait for 6 confirmations to be certain that the transaction has indeed gone through and is part of the blockchain.

1 Like
  1. 2 valid blocks are created.
  2. A block that is dropped back into the mempool.
  3. When 2 valid blocks are created and one of the chains becomes longer.
  4. To ensure that your transactions are not in a stale block.
1 Like