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
0answers
22 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
1answer
32 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
1answer
61 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://...
0
votes
1answer
70 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 ...
2
votes
1answer
120 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 ...
0
votes
0answers
50 views

What is the total number (or rate) of orphaned blocks in Bitcoin in 2020?

Apparently, blockchain.com stopped to provide such information in 2017. Obviously, we still have orphaned/stale blocks in Bitcoin (see, e.g., BitMEX Research: Bitcoin Has a Stale Block For The First ...
4
votes
1answer
224 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 ...
0
votes
2answers
151 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
2answers
80 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
1answer
35 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
1answer
127 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
2answers
798 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 ...
1
vote
0answers
34 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
1answer
412 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
3answers
434 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 ...
5
votes
0answers
221 views

Obtaining historical orphaned blocks (chaintips) without old node

I'm attempting to do some research surrounding orphaned 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
1answer
42 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
2answers
82 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
1answer
84 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 ...
1
vote
1answer
209 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 ...
2
votes
1answer
86 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 ...
2
votes
1answer
181 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 ...
3
votes
1answer
172 views

Is there a visualisation tool for discarded block chains in Bitcoin?

A lot of papers about cryptocurrencies explain the concept of the "longest chain", which goes along with these kind of figures: I was wondering if there exist any kind of visualisation tool for these ...
2
votes
2answers
639 views

Do we put all the transactions in the memory pool?

I wonder if orphan transactions are also stored in the memory pool? If yes, how do the Bitcoin client distinguish between the orphan and non-orphan transactions?
4
votes
1answer
648 views

When does a miner exactly start to create a block?

As far as I know, a miner begins creating a new block as soon as it receives a valid block from another miner. It then begins to construct and hash the next block on top of the block it just received. ...
1
vote
0answers
151 views

Orphaned blocks

Is there orphaned blocks in blockchain? I mean a database of full node. Is it true that orphaned blocks (that outside the mainchain) already are in blk00*.dat files?
2
votes
2answers
102 views

Can there be stale blocks in "header first" implementation?

The Bitcoin developer guide mentions stale blocks as not being in the longest chain, then moves on to orphan blocks. It states you don't get orphan blocks, "and if you do" they are just dropped. But ...
1
vote
1answer
555 views

Selfish Mining: stale or orphan?

In terms of a selfish attack many sources speak of orphaned blocks, i.e. blocks that are not on the main chain and thus not paying any coinbase transaction to its miner. Still I'm not sure and ...
2
votes
1answer
391 views

Is it possible to use Selfish Mining to steal bitcoins?

Is it possible to use the Selfish Mining algorithm to steal bitcoins?
2
votes
1answer
201 views

Orphaned blocks on September 13, 2014

I'm new in the Bitcoin World. Today I did my second transaction for just 0.005 BTC but 2 hours after, it's unconfirmed yet. The transaction is in the block 320385 and it is orphaned. I saw the ...
3
votes
3answers
482 views

How is over-spending one block apart prevented?

So, let's say you have a wallet with 20BTC, and you have a flow like so: You send 15BTC to A in block 1 You send 15BTC to B in block 2 What happens if at block 1 there are two chains across miners. ...
1
vote
0answers
44 views

statistics on actual "replacement" of blocks [duplicate]

I'm not sure if I'm using the right terminology but I know that theoretically it's possible for a block to be part of the longest (i.e. "main") blockchain but then be "replaced" by an alternative ...
34
votes
4answers
58k views

What are orphaned and stale blocks?

If I understand it right, a stale block is a block for which an earlier confirmation has been found and was accepted by majority of people. This block is considered invalid and is later never used. ...
50
votes
2answers
11k views

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

The orphaned blocks view from BlockChain.info shows a recent fork of the blockchain (starting with block 173,928) that went four blocks long before being orphaned. Other than the controlled rewind ...
21
votes
4answers
2k views

How often forks occur?

How often do forks occur in the block chain? I'm interested in the small, one block forks that happen when two miners create a block at the similar time.