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
0
votes
1
answer
103
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
...
0
votes
0
answers
92
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 ...
2
votes
1
answer
95
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 ...
0
votes
1
answer
420
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?
0
votes
2
answers
106
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 ...
2
votes
2
answers
303
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 ...
1
vote
2
answers
504
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 ...
0
votes
2
answers
154
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 ...
4
votes
1
answer
914
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 ...
3
votes
1
answer
226
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 ...
0
votes
1
answer
59
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 ...
3
votes
1
answer
215
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 ...
0
votes
0
answers
331
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] [...
0
votes
1
answer
64
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 ...
1
vote
1
answer
137
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://...
1
vote
1
answer
178
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 ...
4
votes
1
answer
493
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 ...
1
vote
1
answer
161
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 ...
1
vote
1
answer
233
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 ...
3
votes
0
answers
234
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....
5
votes
1
answer
752
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 ...
1
vote
1
answer
73
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 ...
0
votes
2
answers
350
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 ...
2
votes
2
answers
130
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 ...
0
votes
1
answer
60
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 ...
3
votes
1
answer
165
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 ...
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 ...
0
votes
1
answer
183
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 ...
3
votes
1
answer
392
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.
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 ...
6
votes
1
answer
539
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 ...
1
vote
1
answer
190
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 ...
1
vote
3
answers
633
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 ...
2
votes
1
answer
90
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&...
2
votes
2
answers
334
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 ...
10
votes
1
answer
500
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 ...
0
votes
2
answers
295
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 ...
0
votes
1
answer
69
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, ...
0
votes
2
answers
104
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 ...
1
vote
1
answer
110
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 ...
0
votes
1
answer
55
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 ...
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 ...
1
vote
2
answers
315
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 ...
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 ...
1
vote
2
answers
101
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 ...
3
votes
2
answers
316
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 ...
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 ...
0
votes
2
answers
241
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 ...
1
vote
1
answer
745
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 ...
2
votes
1
answer
223
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 ...