Homework on Stale Blocks

1&2 Each block is appended to the chain until a miner solves the next block then one of those (the one not chosen by the miner) will be orphaned from the chain.

  1. The network will always choose to continue with the longest chain so if there exist two or more versions the new blocks on the shorter chains will be dropped.

  2. Waiting until 6 more blocks are confirmed lowers the risk of a block being dropped.

*not certain how waiting works?

2 Likes
  1. When two miners create valid blocks and append them to the blockchain simultaneously it creates two seperate blockchains in the network. Eventually, a newly mined block will be appended to one of these blocks and that longer blockchain will be accepted by all nodes because it is the longest chain.

  2. A stale block is the last block on blockchain that has been rejected by the network

  3. A stale block arises when that block is the last block on a blockchain that has been rejected by the network because another blockchain in the network became longer. The longest blockchain is always accepted as “truth”.

  4. It is important to wait for more than one confirmations because this is increasing assurance that your transaction will is not in a atale block that will be returned to the mempool.

1 Like

I think there is still a bit of confusion about this :slight_smile: the reason we wait for 6 confirmations is to be sure that our transaction is not part of the stale block :slight_smile: the blocks are small enough to be quite sure the block will arrive to your node within 10 min (which would show as 1 confirmation in your wallet). But this block can become stale and your tx dropped back into the mempool.

2 Likes

What are you not certain about? You wait for the network to mine more blocks. Each block means a confirmation. When your transaction is mined it has 1 confirmation, after about an hour 5 more blocks will get mined and that will mean your tx has 6 confirmations :slight_smile:

1 Like

I’m imagining how that works if everyone is waiting 6 transactions as a rule. Essentially then there is a built in lag to the network. But I guess that’s fine!

  • What happens in the bitcoin network when two miners solve a block at the same time?
    A. The chain forks temporarily until one chain is built upon then that chain is taken and the data from the losing orphaned chain is returned back to the mempool
  • What is a stale block?
    A. A block that is dropped as another block that was mined at the same time is part of the longer chain
  • How do stale blocks occur?
    A When two blocks are created at the same time but one block is dropped as the other chain is longer
  • Why is it important to wait for more than one block to be confirmed when sending or receiving a transaction?
    A. It is important to wait for 6 new blocks as that will confirm inclusion of your block in the chain
1 Like

1.) Two miners mine a legitimate block at the same time and distribute their own version of the blockchain to the network. Two versions of the blockchain are now created.

2.) A mined block that was dropped, because it is on the shorter blockchain.

3.) The next block determines which blockchain will be continued. The longer chain wins and the shorter one is obsolete.

4.) One of my own transactions may have been deposited in such a potential stale block and could soon be discarded. The reversed transactions stored in that Stale Block will go back to the Mempool.

1 Like
  1. the longest chain will win

  2. blocks that didn’t get chosen as part of the longer chain to become permanent part of chain and is dropped

  3. They happen when 2 versions are produced and the one that was part of longer chain was accepted

  4. to make sure all nodes have updated and correct version of transactions

1 Like
  1. each block will be accepted into the network of nodes closest to them, until eventually the nodes will see what is going on. and continue to build only on the current longest chain, which means dropping the shorter chain of blocks that are orphaned or stale.
  2. stale block is a block that was accepted into the network, but that the network kept building on another chain, and dropped the afore accepted block.
  3. when two valid blocks are created at nearly the same time
  4. if you wait for the blocks to build on, it is less likely the block will become stale.
1 Like
  1. Both blocks will compete until the one with the longest chain will be accepted, and the other one will become invalid

  2. A stale block is a block that has been discarded in favor of an alternative that has been accepted by the nodes

  3. If two or more miners complete a block at the same time, but only one can be accepted, the other becomes stale.

  4. The more nodes that accept a block, the more confidence you can have in its validity, therefore only one confirmation is insufficient for security.

1 Like
  1. Both are propagated to the network, some nodes will get one first, some will get the other. After the next block the longest chain then gets up dated to the nodes with which block is actual truth.

  2. The dropped block that was not hashed into the next block

  3. Two block solutions submitted around the same time and one gets rejected as there cannot be two versions of truth, longest chain is truth

  4. The fewer confs you have the higher the chance that the block containing your tx could become stale leaving you without the goods or services sold and without the bitcoin either. 6 confs is the rule of thumb but this will take 60mins +/-

1 Like

waiting just means as a vendor of say a Lambo, you want to make sure that u get the btc before the guy drives into the sunset. So you and he wait an hour together before he gets the keys. Similarly ive heard stories of local bitcoin dealers sending the BTC and waiting with the guy, when he knows he has the BTC he does a runner without handing over the cash, goes both ways but there is no lag effect to the networks by you two sitting around together for an hour to make sure the BTC is as good as permanent.

2 Likes
  1. Longest chain wins.
  2. Block that is dropped because it is part of shorter chain.
  3. Because two miners solve the block at the same time/
  4. To avoid stale block
1 Like

Yeah nothing wrong with that. Sounds like a good time in fact

With the Bitcoin network, when two miners solve a block at the same time they begin to propagate their block throughout the network, creating two valid versions of the blockchain. When another miner comes along they begin to append their block to one of these blocks, depending on whichever valid version of the blockchain they have received.

When one of the valid blocks is not appended it turns into a stale block and is dropped. With it’s transactions going back into the mempool.

Stale blocks occur when a valid block is not chosen and is dropped.

It is important to wait for more than one block to be confirmed when sending or receiving a transaction as your transaction may be in a stale block.

1 Like
  1. the blockchain splits into two valid chains, each with valid blocks. the new blocks are propagated through the network based on proximity (by connectivity)
  2. a stale block is a valid block, that has been part of one of the valid chains, but has been dropped from the only consensus approved longest blockchain
  3. they occur when two miners mine a block at roughly the same time, one part of the network propagates one of the resulting blocks and the other one the other, two chains are formed and subsequent blocks are added to them as they are both valid chains; eventually after a maximum of about 6 blocks but usually much sooner a consensus is reached on the network which chain is the longest (most POW) and that chain is considered the valid blockchain; the other ‘forked’ chain is dropped from the chain and all blocks mined in the time after the fork considered orphaned
  4. to make sure the transaction is accepted by the complete network of nodes as only that eliminates the possibility of it becoming invalid as part of an orphaned block
1 Like
  1. What happens in the bitcoin network when two miners solve a block at the same time?

Temporarily there are two different versions of the block chain. The miners of the next block are based on one of the two versions.
Now the version with the longest chain wins, the transactions of the other chain end up back in the mempool

  1. What is a stale block?

A block that is no longer part of the current blockchain.

  1. How do stale blocks occur?

If miner create a valid block at the same time. The block which will not be a part of the next main version of the chain is the stale block

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

Thus, there is a high probability that the transaction is not based on an obsolete version of the blockchain

1 Like
  1. What happens in the bitcoin network when two miners solve a block at the same time?
    The longest chain will win and the other is erased from existence.

  2. What is a stale block? The losing block…its sent back to the mempool and eventually dropped.

  3. How do stale blocks occur? It occurs when two blocks are being mined simultaneously, the longer block moves on and the other block becomes the stale block.

  4. Why is it important to wait for more than one block to be confirmed when sending or receiving a transaction? to ensure that your transaction is not dropped from the chain.

1 Like

Exactly. Sorry for the late reply. :slight_smile:

2 Likes
  1. Two versions of the blockchain become propagated in the network. The one that gathers the most Proof Of Work first and has further blocks added becomes the default ‘true’ blockchain.

  2. The block from the chain that did not become established as ‘true’ reverts to the mempool and is called a stale block.

  3. They are blocks that are added to the blockchain at the same time as other blocks but the other blocks accumulate more Proof of Work and become permanent while the stale blocks revert to the mempool.

  4. To be sure that your transaction does not end up in a stale block.

1 Like