Skip to main content
Share Your Experience: Take the 2024 Developer Survey

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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
89 views

How is the problem of orphan blocks solved in this case?

All nodes are online all the time, they were not offline. What will happen if some of my peers (blue peers) have their chains as follows: ... -> A -> B -> D (main chain) \-> C ...
Hurry Walk's user avatar
0 votes
0 answers
91 views

Is the stale block (its header) accepted only if it extends the existing stale chain tip or it is only necessary that the parent is known? [duplicate]

When I write "accepted" for non-main (canonical) chain blocks, I mean on accepting and storing their headers, not entire blocks. Additional request for an entire block is done once the chain ...
Hurry Walk's user avatar
2 votes
1 answer
90 views

Retention and Accessibility of Disconnected Block and Transaction Data

In the context of a fully indexed, non-pruned Bitcoin Core node, I am exploring the duration and persistence of data related to disconnected blocks and their contained transactions due to a blockchain ...
Jeff Trimmer's user avatar
0 votes
1 answer
315 views

Do Orphan Blocks Still Exist In Bitcoin?

Orphan blocks were one of the problems with Bitcoin at its beginning. Do orphan blocks still exist in Bitcoin, and if not, why?
user avatar
0 votes
2 answers
78 views

Deleting data in blockchain

I have read that block in blockchain is immutable since the next block is storing the hash of previous block . What if , to remove a block from the blockchain , I set the "previous hash" of ...
Ayush's user avatar
  • 1
2 votes
2 answers
288 views

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 ...
offchan's user avatar
  • 125
1 vote
2 answers
456 views

Bitcoin core sync stuck with an error "peer=X is stalling block download"

I have installed bitcoin core (23.0) on a virtual machine (Debian GNU/Linux 10, x86_64) and tried to start the testnet initial block download. Unfortunately,a few days ago blockchain sync is stuck on ...
dancingsushi's user avatar
0 votes
2 answers
153 views

Mining stale low-difficulty blocks as a DoS attack

A DoS attack vector against a bitcoin node I haven't really seen mentioned anywhere is mining a stale chain in a low-difficulty era (say right after the genesis block), ideally with a lot of expensive ...
Vojtěch Strnad's user avatar
4 votes
1 answer
911 views

Does local blockchain database (blkXXXXX.dat) contain abandoned forks forever?

When my node realizes that the given block needs to be abandoned - does it leave it in the database or replace the block with a valid one? And if "invalid" block remains: is it somehow ...
ardabro's user avatar
  • 195
3 votes
1 answer
225 views

Is there evidence for lack of stale blocks?

There was a recently published academic paper "Bitcoin’s limited adoption problem" which used a statistic that the network latency is around 15 seconds. Obviously, this is not true: One can ...
MicahW's user avatar
  • 81
0 votes
1 answer
58 views

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 ...
asdf's user avatar
  • 1
3 votes
1 answer
213 views

Removing stale blocks using prune=1TB

I'm running a block parser that reads blocks/*.dat and I've noticed it dumps the stale blocks as well as the main chain blocks. My project only needs the main chain blocks, and I noticed that Core's ...
Steve's user avatar
  • 99
0 votes
0 answers
274 views

Bitcoin re-org stats

Does anyone have a table of historic Bitcoin reorgs? Something like [yyyymmdd] [blockheight] 1 stale block [yyyymmdd] [blockheight] 1 stale block [yyyymmdd] [blockheight] 2 stale blocks [yyyymmdd] [...
Paul's user avatar
  • 23
0 votes
1 answer
61 views

How many blocks extra does one need before it's competitor is deemed stale?

so when two equally valid blocks are discovered at roughly the same time, a conflict occurs, nodes should wait for the strongest fork of the chain to emerge and develop before placing trust in the ...
nohatsatthetable's user avatar
1 vote
1 answer
136 views

How do full nodes get the information about stale blocks?

In Bitcoin, many forks occur when multiple miners mine blocks at the same time. Then there will be multiple blocks at the same block height. I was looking at the Bitcoin P2P developer guide at https://...
satya's user avatar
  • 171
1 vote
1 answer
174 views

Question regarding stale blocks and the heaviest chain

According to this website: https://forkmonitor.info/stale/btc/644543, at the block heigh 644543 multiple blocks were produced. If I understand correctly, in Bitcoin, the heaviest chain survives, while ...
Remis's user avatar
  • 137
4 votes
1 answer
472 views

What is a stale blockchain tip? Is it a blockchain tip missing the latest mined block?

Stale blocks and orphaned blocks are defined here. What is a stale blockchain tip? Is it a blockchain tip missing the latest mined block? Or is it a blockchain with a stale block (as defined in that ...
Michael Folkson's user avatar
1 vote
1 answer
149 views

Is block reorg works in this way?

i need an expert to clarify is my understanding correct to block reorganization. I can't find answer can persuade me, sound like only i dunno what is block reorganization :(. say my bitcoin network ...
Atlas Chiew's user avatar
1 vote
1 answer
226 views

How can Forks and Orphan Blocks be used to attack a Blockchain?

So I'm trying to learn about the security aspects of Blockchains and one of the papers I'm reading (https://arxiv.org/pdf/1904.03487.pdf) states that Forks and Orphaned Blocks can be used to attack a ...
L M 's user avatar
  • 79
3 votes
0 answers
215 views

Orphan blocks explorer

Is there any blockchain explorer that lists orphaned blocks or reorgs? How often does it happen in general? I only found this site which doesn't show any orphaned blocks after 2017: https://www....
premek.v's user avatar
  • 133
5 votes
1 answer
652 views

How often does temporary fork occur and how long does it last?

I was wondering, how often does temporary forks occur? They appear when there are two different blocks mined based on the same previous block (parent block), but what are chances for that? And if fork ...
ddavi031's user avatar
  • 479
1 vote
1 answer
72 views

What does an orphaned tx look like via rpc? [closed]

I am testing with a currency forked from Pivx, but I see that bitcoind responds the same way here https://bitcointalk.org/index.php?topic=100824.0 with error code -5 If I send/receive a tx that then ...
Ben Muircroft's user avatar
0 votes
2 answers
334 views

Bitcoin block maturity and block reward rules

According to the Bitcoin wiki: "When a block becomes an orphan block, all of its valid transactions are re-added to the pool of queued transactions and will be included in another block. The 50 BTC ...
Anonymous's user avatar
2 votes
2 answers
128 views

Can I rely on my full node to always have the most recent blocks?

I have a full node running and I am using ZMQ to let me know when new blocks arrive. How can I make sure that this block that my node received is a valid block written in the blockchain ledger and it ...
Allan Romanato's user avatar
0 votes
1 answer
59 views

How do I ask other nodes for their stale blocks?

I want data on as many stale blocks as possible. Is there a way to ask peer nodes to run "getchaintips" and get their results? Previously, I used Blockchain.info's API call for this, but it seems ...
fillup07's user avatar
3 votes
1 answer
164 views

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 ...
Scalextrix's user avatar
4 votes
2 answers
1k views

What happen if some blocks are added simultaneously with same previous hash

In all of the blockchain samples that I see e.g. adilmoujahid, Savjee as I checked, they added previous Hash by creating a block. Suppose that, L is the current last block in a chain. Block A and ...
masoud2011's user avatar
0 votes
1 answer
179 views

Bitcoin Orphan blocks - short question about the "time lag" factor and proof-of-work "size"

"However, it is possible that two miners produce a block at a similar time. This situation occurs because the acceptance of the blocks into the blockchain by the nodes of the blockchain network ...
johnsmiththelird's user avatar
3 votes
1 answer
388 views

Why Block Chain not Block Tree?

Why is the Blockchain intended to be a chain and not a tree? Why do orphaned blocks get trimmed off? Would you please provide a detailed answer.
محمد جعفر نعمة's user avatar
1 vote
0 answers
46 views

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 ...
Kevin P's user avatar
  • 69
6 votes
1 answer
536 views

What are the consequences of high orphan block rate?

I know the disadvantages of a high stale block rate include: More opportunities for double spend attacks Lower network difficulty making the network cheaper to attack But I don't know how even an ...
mengeroshi's user avatar
1 vote
1 answer
180 views

Can a transaction disappear?

Can a transaction disappear after a transaction is submitted to the Bitcoin network? I read about stale blocks. Are all transactions in a stale block going away? Is there a possibility that ...
이경언's user avatar
1 vote
3 answers
628 views

What happens to transactions included in extinct or invalid blocks?

I have read that a block contains several transactions. An attacker can forge fake a block. The blockchain is safe because the system will choose and keep the longest chain. So the fake block will ...
Bob5421's user avatar
  • 217
2 votes
1 answer
89 views

Bitcoin Core mempool after disconnecting a block

After reading this answer by Pieter about "undo files" I'm wondering what happens with transactions that were included in stale blocks but are left out the new blocks when "rolling back&...
sr_gi's user avatar
  • 3,220
2 votes
2 answers
329 views

Why do large blocks increase the probability of chain reorgs?

After the recent two chain reorgs taking place in Bitcoin Cash SV, I am finding a number of developers stating that large blocks are the reason for the reorgs: "Almost each time someone is trying to ...
AdaptiveAnalysis's user avatar
10 votes
1 answer
481 views

Obtaining historical stale blocks (chaintips) without old node

I'm attempting to do some research surrounding stale blocks within the Bitcoin network. From my understanding the best and really only way to obtain data for blocks that no longer exist in the main ...
Mason Ticehurst's user avatar
0 votes
2 answers
288 views

Data about number of block mined + stale blocks per day in Bitcoin?

I am wondering if there is any easy way to get number of mined blocks per day + number of stale blocks per day for the last three month e.g.,? I could not find such data on Blockchain.info In ...
MWH's user avatar
  • 131
0 votes
1 answer
65 views

What is the longnest blockchain fork that has been orphaned to date?

On this thread, the user asked what is the longest unintentional fork that Bitcoin had suffered. From the answers present, Bitcoin never had a >4 block fork until 2012. It has been 6 years though, ...
MaiaVictor's user avatar
0 votes
2 answers
103 views

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 ...
user87441's user avatar
1 vote
1 answer
108 views

Detecting stale blocks with ZeroMQ

I'am writing an application which receives information about new tx and blocks via ZeroMQ. There is a chance that I will receive notifs about blocks which will later on become stale blocks. Is there a ...
Maciej Mościcki's user avatar
0 votes
1 answer
53 views

Is there a webpage showing some of the latest orphaned blocks?

Blockchain.info has a couple pages about orphans, but the chart page does not agree with the list page. My admittedly brief search for a page that shows orphans didn't turn up anything that was ...
Dave Scotese's user avatar
2 votes
1 answer
240 views

Do stale blocks get reported by bitcoin daemon?

Do stale blocks end up or get reported by bitcoin daemon client? I am writing a bitcoin service and need to listen for incoming transactions for select accounts using the bitcoin client. For this I am ...
androidu's user avatar
  • 121
1 vote
2 answers
312 views

How to return tx to mempool from stale block?

This question is centered around the implementation of how transactions from a reorganized block return to the mempool. In my understanding, once a block becomes organized out of the best chain all ...
Some_user_qwerty's user avatar
1 vote
1 answer
510 views

Transaction listed as confirmed in two blocks on blockchain.info

There is a strange tx 9c7b0d0423af64e81c4b850bae781e41077586a9e3328f5048f8367c6e4a8212 that is shown as confirmed twice in the blockchain.info database. Blockchain.info information is truly ...
Denis Leonov's user avatar
1 vote
2 answers
98 views

Mining reward for stale blocks

Suppose a miner mined a block and the block was part of the best chain. He must have got his mining reward then. Now suppose that due to a fork sometimes later, the block that he mined is no longer a ...
Ankit Shubham's user avatar
3 votes
2 answers
303 views

Orphan block payment maturity

I know that the outputs coinbase transaction can be spent only after receiving 100 confirmations. So is it that a miner who mined an orphan block receives the outputs of coinbase transaction but can ...
Vasista's user avatar
  • 71
2 votes
1 answer
95 views

Shorter Chains in blockdata

Assuming two blocks are published at exactly the same time, a race for the next block to be added to one of them begins, which eventually one chain will eventually win. My question: will the shorter ...
Jimmy Johnson's user avatar
0 votes
2 answers
239 views

Are no orphaned blocks mined in the Bitcoin network?

I can't find orphaned blocks in the Bitcoin network from July with references to blockchain.info. Does this mean the bitcoin network centralization? I like C. Decker's paper "Information Propagation ...
prismoid's user avatar
1 vote
1 answer
726 views

Remove Orphan blocks from "personal" blockchain

Alright, so I've been trying to learn a little more about the blockchain and blockchain-development lately. For every other altcoin, I've noticed that there's such a thing as a bootstrap.dat-file ...
dragonskater45's user avatar
2 votes
1 answer
218 views

What happens to the transaction using the coinbase transaction output of a block later considered stale?

As I understand it, a stale (orphan?) block is determined after it is out competed by its sister block. But I can't help but wonder what would happen to the coinbase transaction's output of the stale ...
Chong's user avatar
  • 141