Questions tagged [chain-reorganization]

Questions about the client-local phenomenon when a Bitcoin client discovers a new chain longer in terms of difficulty than its current chain.

Filter by
Sorted by
Tagged with
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 ...
3
votes
2answers
501 views

Incoming transaction has been marked as pending since 2013. How can I retrieve it?

I requested BTC from someone back in 2013. Its been in pending status ever since. It has nearly 500,000 confirmations. The value of transaction when initiated was only $200 or so. Now the value is ...
1
vote
0answers
72 views

Reorgs and MEV in Bitcoin

Recently one of the altcoin that has lot of other issues is in news because of MEV (Miner Extractable Value). Honestly I don't care if someone exploits it or it affects the altcoin in any other way. ...
2
votes
1answer
60 views

What are the reasons to avoid spend-paths that become invalid over time (without a transaction)?

I have been told that a spend-path that expires is something bitcoin designers have explicitly avoided, and that it would cause bad reorg behavior (eg here). To be clear about what I mean by an ...
1
vote
1answer
281 views

Why is the Bitcoin blockchain designed so that a block can be unconfirmed?

After a transaction is confirmed and included in a block, it is said to have a depth (confirmation) of one. However I've read that many companies require "multiple" confirmations (up to 6) ...
1
vote
0answers
27 views

How do nodes handle long reorgs?

In a reorg where a node receives blocks for a longer or equal-length chain than the chain they previously followed as longest, what is the process for that node to handle this situation? I can imagine ...
7
votes
2answers
593 views

How does the BTC protocol guarantee that a "main" blockchain emerges?

I'm reading up on the bitcoin/blockchain technology. Usually, the part about proof of work and how to create a block is well explained. However, what is never explained is how/why the communication of ...
2
votes
1answer
655 views

What is the length of largest known reorganization in bitcoin? [duplicate]

Usually there is an assumption, that a transaction is fully finalized after 6 confirmations, e.g. 6 blocks mined on top of the block, which includes given transaction. What is the length of largest ...
1
vote
1answer
68 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 ...
2
votes
0answers
47 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....
1
vote
1answer
42 views

How does longest chain propagation take place in bitcoin?

Let's say the valid blockchain that Node A has is: B1->B2->B3 Now, I am gonna cheat since I have lots of computing power. What I do is I download the above blockchain that Node A has and start ...
1
vote
0answers
73 views

Where can I find data for abandoned blocks (74,638 to 74,690) for the Value Overflow Incident when ₿184 billion BTC were accidentally created?

I already have data for all the Mainchain Blocks. Where can I find data for the orphaned/abandoned blocks (74,638 to 74,690) before the re-organisation occurred? I can only seem to find information ...
3
votes
1answer
44 views

What is the proper way to handle reorgs when fetching headers

I work on bitcoin-s, and we've found a problem where if a node is stopped with it's chain tip being a one that is later reorged out it will not be able to continue syncing headers. This happens ...
4
votes
1answer
206 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
1answer
44 views

Undo files format change and reorg process question for v0.19

This is a follow-up question for rev.dat file format Pieter Wuille gave a great explanation that is easy to follow. Since that posting there was a replacement of CTxInUndo with Coin, does the format ...
0
votes
1answer
67 views

Rewriting the blockchain?

The main bitcoin blockchain (the chain that miners choose to work on) is the chain with the most proof of work ("heaviest" chain). Currently, the cumulative proof of work on the bitcoin main ...
1
vote
1answer
137 views

Bitcoind not publishing blocks via ZMQ after reorganization

On the testnet, I am running a bitcoin core deamon (bitcoind) and am using ZMQ to receive updates about transactions and blocks (subscribed to both 'rawblock' and 'rawtx'). I was curious as to how ...
0
votes
1answer
88 views

Where is the code of chain reorganization in Bitcoin Core

I'm trying to understand how Bitcoin Core works in-depth. Can someone tell me where is the code executed during a blockchain reorganization in Bitcoin Core? Any explanation would also be greatly ...
1
vote
1answer
256 views

Understanding getchaintips in terms of chain reorganisations

I'm trying to get an understanding of the chain reorganisations my node has experienced by looking at bitcoin-cli getchaintips. The "status" of the different branches tells me the following: 1. "...
1
vote
1answer
313 views

bitcoin reorg question

if a block takes 10 minutes to be mined does it need 21 minutes to be reorged? if the reorg started immediately after the block was mined because 100% was mining and 51.5% will reorg how long does ...
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 ...
5
votes
1answer
249 views

How long are orphaned or stale blocks kept in bitcoin core nodes memory?

If there was a chain reorg, for example: Blockchain: 0a---1a---2a---3a becomes... 0a---1a---2b---3b How long are blocks 2b and 3b kept in memory on the node? If I query the node for block 2b ...
1
vote
0answers
53 views

how do I mark coins spent in invalid blocks as unspent?

I was just testing bitcoin (v17) in regtest mode with the local, built-in wallet. If I send money to an address (I don't own), generate 1, and then invalidate that block, the local wallet does not ...
1
vote
1answer
54 views

Is Block Finalization a valid development to remove the threat of 51% attacks?

https://www.reddit.com/r/btc/comments/bq8cqo/btctop_currently_has_51_hashing_power/eo2p4md?utm_source=share&utm_medium=web2x A recent comment from a Reddit user in response to BTC.top acquiring ...
2
votes
2answers
409 views

In what order do new blocks get processed?

Node A receives a newest block with height h1, which it determines to be valid, and therefore stores the block on disk. A little later, it receives another block with the same height h1 but a greater ...
1
vote
2answers
229 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 ...
0
votes
1answer
77 views

Bitcoin fork resolution - Fork losers download previous blocks 'til common block?

When resolving a naturally occurring fork in Bitcoin, do the miners who were working on the orphaned fork download previous blocks from the miner who won the block reward that resolved the fork until ...
1
vote
0answers
87 views

confirmations: 0 vs confirmations: -1?

I'm looking at a bitcoin clone, not sure what codebase it was cloned from, but I've noticed that the listSinceBlock output sometimes includes: a receive that has 0 confirmations a send that has 0 ...
8
votes
2answers
855 views

Can the blockchain be outpaced by a chain of low-difficulty blocks?

Let's say someone creates a blockchain fork starting from the genesis block, when the difficulty was absurdly low compared to today; then he starts mining new blocks from there up to the current block ...
18
votes
3answers
1k views

Countrywide Internet isolation, inevitable fork

Many countries around the world have provisions for shutting off the Internet as well as isolating itself from the Internet (where networking within borders still flourishes), any transaction ...
0
votes
2answers
269 views

What would happen if a private fork several hundred blocks ahead tried to merge back?

Suppose mining pool has been off the main network for a long time so that they are 100 or so blocks behind, but managed to mine 200 blocks in the period (say, some combination of had 33% before, ...
1
vote
2answers
1k views

If a block chain is considered invalid, how about transactions in this block chain?

Say if at current time there exist split of block chain, we call them A and B. A is "longer" then B, as the result B will be eventually forgotten, but what happened about the transactions in blocks on ...
1
vote
2answers
457 views

Valid block on top of invalid block

I have been researching a little on the concept of blockchain for some time now. If there is any corrupted block then others won't try to build blocks on top of it. But suppose for some time if it ...
2
votes
2answers
101 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
121 views

How are transactions in forks verified efficiently?

In this answer here, it's stated that Bitcoin uses a hashtable of all currently unspent outputs, in order to verify that the inputs of transactions haven't already been spent. How does this interact ...
3
votes
2answers
248 views

How do I know I can trust the head of the blockchain

I'm trying to understand how the mining process works. Specifically, my understanding is the local miner works on blocks and add them to their local blockchain if they succeed. It may turn out that ...
4
votes
1answer
209 views

How does Bitcoin avoid splitting into multiple p2p networks?

So since Bitcoin is completely decentralized what stops multiple p2p networks from being formed? And what happens with the block chain when two separate P2P networks eventually reach each other? Will ...
4
votes
3answers
702 views

Why should a miner choose the longest blockchain if another chain has a higher expected reward?

Why did miners/pools choose the longest chain for continuing it? Because with this strategy they have the highest expected bitcoin reward. The expected bitcoin reward is (new generated bitcoin (b) + ...
3
votes
1answer
577 views

Can a shorter chain overcome a longer one?

Could a dominating chain fork actually be shorter (in blocks) than its abandoned predecessor? Under what circumstances could this happen?
9
votes
1answer
8k views

What was the goal of creating the feature of immature coins?

I just ran into the idea of immature coins. Can someone explain to me the idea behind immature coins and what was the purpose of it?
3
votes
3answers
854 views

Why you need to rehash each block after a changed block when changing data in a blockchain?

Maybe my question is stupid, but, why you need to rehash each block after a changed block when changing data in a blockchain? Each block contains a hash of its data and hash of previous block. If I ...
5
votes
2answers
931 views

How to detect reorganization from bitcoind via ZMQ?

I have my own bitcoind server (bitcoin core) and receive transaction data from the bitcoind via ZMQ. Then the transactions are stored into my database for data analytics or statics. [bitcoind] --> (...
6
votes
2answers
1k views

51% attack and rewriting to the latest checkpoint

This is not a question about the consequence of a 51% on the price nor as to the motivation of the attacker. Let say we don't care that it's not realistic and we don't care that the attacker wouldn't ...
1
vote
2answers
480 views

What going to happend with transactions that is in both rejectend AND accepted chains?

I have been reading about blockchain forks and the longest chain situations and I cannot really understand what is going to happend in the situation when the transacton were included in both accepted ...
1
vote
0answers
125 views

Bitcoinj stuck after chain split

I am using LevelDBFullPrunedBlockStore as a BlockChain. once in every 2-3 chainsplit in the network my bitcoinJ node stops to download new block. The scenario is always the same 1)My node get block ...
3
votes
1answer
150 views

When an attacker publishes a longer chain, does Bitcoin Core emit a warning?

I tried answering a question about a majority-attacker's power to change the blockchain yesterday. There is one thing I haven't been able to get a clear picture on, yet: When a previously unknown ...
3
votes
1answer
301 views

What happens to my outgoing txs in a block reorganization?

Let's assume I create and send a series of txs: |------block A--------|------block B----------|----block C-----|----block D-----| |Tx1......Tx2.........|...Tx3.................|................|.........
1
vote
1answer
119 views

Would it be possible to overtake the network by running a secluded mining operation for many years?

I have a scenario. Let's say I start my own Bitcoin mining on a secluded network. I leave this to mine for many years or even pass it down to future generations. To the very point that my chain is ...
0
votes
2answers
255 views

Why can't I create a fork of BTC that has no difficulty changes so I can premine the rest of the coins?

I don't want to necessarily do this, but what prevents this scenario from being possible? [just timestamps and a difficulty modifier alone? - if that's the case then why can't I modify the client to ...
3
votes
3answers
471 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. ...