Questions tagged [stale-block]

A block that is part of an alternative branch in the blockchain and doesn't belong to the longest chain. Stale blocks occur when the blockchain forks, but another competing block at the same height ends up parenting the new longest chain.

87 questions
5
votes
2 answers

Orphan Blocks rate

What are the factors affecting the rate of orphan blocks? The one I can think of is network latency, the higher it is, the higher the rate of orphan blocks. Any other suggestions?
Simus
  • 165
  • 1
  • 4
3
votes
1 answer

Are stale blocks retained forever or are they "pruned" automatically at some depth in the chain?

In theory the chain could be re-mined from a stale block, and their existence seems superfluous and just use up data storage, are they automatically pruned after x height, and if so where in the code does this happen?
Scalextrix
  • 432
  • 2
  • 10
2
votes
2 answers

Are stale blocks permanently discarded?

I know that stale blocks usually happen by accidents and the chain that has more blocks will be chosen as canonical chain by default and the stale chain is discarded. My question is about what it means to be discarded? Is it permanently…
offchan
  • 125
  • 4
1
vote
0 answers

Extinct block in index

I am working on a blockchain parser. I first parse the header index to know where the data is located in the .blk files. And then I parse the blk files in the right order. (I use the data from my full node) However I noticed that I am including an…
Kevin P
  • 69
  • 5
0
votes
2 answers

Stale block verification at node level

It comes to my curiousity about how exactly the node A will mine block N+1 when he & node B generated block N (not in same time but) in a fairly close timeframe. In many articles, it says that when 2 nodes (A&B) are generating the same height block…
0
votes
1 answer

Do nodes propagate stale blocks?

I read somewhere (but can't find now) that while a node might receive a stale block, the node won't propagate a block that it knows to be stale. Is that true? If so I don't quite understand how a secret attacking miner, even if they did…
asdf
  • 1