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
47
votes
2answers
10k 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 ...
31
votes
4answers
54k 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. ...
21
votes
4answers
1k 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.
5
votes
1answer
351 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 ...
4
votes
2answers
500 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 ...
4
votes
1answer
627 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. ...
4
votes
0answers
145 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 ...
3
votes
1answer
116 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 ...
3
votes
3answers
388 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. ...
3
votes
1answer
160 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
1answer
345 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
2answers
51 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 ...
2
votes
2answers
588 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?
2
votes
2answers
83 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 ...
2
votes
1answer
158 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 ...
2
votes
1answer
200 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 ...
2
votes
1answer
72 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 ...
1
vote
3answers
204 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 ...
1
vote
1answer
495 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 ...
1
vote
1answer
76 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
192 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
0answers
31 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 ...
1
vote
0answers
145 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?
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 ...
0
votes
2answers
33 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 ...
0
votes
1answer
26 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 ...
0
votes
1answer
37 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
68 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 ...