Bitcoin Forum
May 01, 2024, 11:50:52 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Orphaned block?  (Read 949 times)
ShameOnYou (OP)
Full Member
***
Offline Offline

Activity: 238
Merit: 100



View Profile
July 12, 2014, 10:14:37 PM
 #1

Hey all, still a bit of a newbie with the technical stuff. I made a bitcoin payment last night, about 12 hours ago, and to my surprise when I opened my wallet this morning, the tx showed as unconfirmed, even though I sent a miner's fee (default through blockchain.info). Anyway, when I look at the tx, it was relayed in this block -- https://blockchain.info/block-index/448701 -- which was orphaned.

Does this mean this tx will eventually fail and the original inputs spendable again?
1714607452
Hero Member
*
Offline Offline

Posts: 1714607452

View Profile Personal Message (Offline)

Ignore
1714607452
Reply with quote  #2

1714607452
Report to moderator
Bitcoin mining is now a specialized and very risky industry, just like gold mining. Amateur miners are unlikely to make much money, and may even lose money. Bitcoin is much more than just mining, though!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714607452
Hero Member
*
Offline Offline

Posts: 1714607452

View Profile Personal Message (Offline)

Ignore
1714607452
Reply with quote  #2

1714607452
Report to moderator
1714607452
Hero Member
*
Offline Offline

Posts: 1714607452

View Profile Personal Message (Offline)

Ignore
1714607452
Reply with quote  #2

1714607452
Report to moderator
ncsupanda
Legendary
*
Offline Offline

Activity: 1628
Merit: 1012



View Profile
July 12, 2014, 10:50:11 PM
 #2

Hey all, still a bit of a newbie with the technical stuff. I made a bitcoin payment last night, about 12 hours ago, and to my surprise when I opened my wallet this morning, the tx showed as unconfirmed, even though I sent a miner's fee (default through blockchain.info). Anyway, when I look at the tx, it was relayed in this block -- https://blockchain.info/block-index/448701 -- which was orphaned.

Does this mean this tx will eventually fail and the original inputs spendable again?

I've looked around, and I believe so.

we have transactions on both blocks. What happens with the ones on the orphaned block?

Consider that there are two miners, Alice and Bob, and the last solved block was a block at height 100.  So both are trying to solve for block 101.  Bob may have some transactions that Alice doesn't yet include and vice-versa.

Then say both happen to solve a block 101 at about the same time and broadcast their 101 to their peers.

A peer node X happens to learn first of Alice's block 101. and any transactions in Alice's 101 will now show as 1/unconfirmed.   Then X learns of Bob's block 101.  X will still store that block (as a side branch) but will still treat Alice's block 101 as the last solved block.   Any transactions that were added exclusively by Bob in his block 101 will still show as 0/unconfirmed by node X.  

If another miner, Charlie, instead first learned of a block at height 101 from a peer relayed Bob's block 101, then it is trying to solve for block 102, Charlie solves it and broadcasts it and thus Charlie's peers propagate it and eventually it reaches X.

Now X confirms Charlie's 102 is valid and thus takes that side branch that included Bob's 101 and makes it the main branch after appending to it Charlie's block 102.   Alice's 101 is now a side branch (which causes her 101 to be an orphan).  If there were any transactions that Alice had shown as 1/unconfirmed in which neither Bob nor Charlie had added, then X will now display 0/unconfirmed for that transaction.  

 - http://en.bitcoin.it/wiki/Protocol_rules#.22block.22_messages

So to recap ...  when X learned of Alice's block 101 first it added it as being valid, and any other blocks for 101 that arrived later (e.g., Bob's block 101) were added to a side branch.  So the winner at any block height is the first valid block to arrive at each specific node.  Thus there is an incentive to miners to see their blocks propagate as quickly as possible, and the smaller the block (fewer transactions) the faster it will be verified and relayed by each node.  There are orphaned blocks pretty frequently  (e.g. daily) so this isn't just some odd quirk that happens only once in a blue moon.



Wusolini
Legendary
*
Offline Offline

Activity: 1190
Merit: 1000


no need to carry heavy money bags anymore


View Profile
July 12, 2014, 10:53:05 PM
 #3

don't worry, just wait for another block  Wink

ShameOnYou (OP)
Full Member
***
Offline Offline

Activity: 238
Merit: 100



View Profile
July 12, 2014, 10:57:06 PM
 #4

Thanks for the answer, ncsupanda. That's sort of what I expected. This has just never happened to me before.

don't worry, just wait for another block  Wink

This block was timestamped 13 hours ago, and there have been 88 blocks found since. I suspect it won't be confirmed.... Smiley
CEG5952
Hero Member
*****
Offline Offline

Activity: 658
Merit: 500

Buy and sell bitcoins,


View Profile
July 12, 2014, 11:03:43 PM
 #5

This block was timestamped 13 hours ago, and there have been 88 blocks found since. I suspect it won't be confirmed.... Smiley

I suspect you are right. Grin

I wonder how often blocks are orphaned, can anyone point to any data? They must be rare enough that Bitpay can justify doing zero-confirmation invoicing.

ncsupanda
Legendary
*
Offline Offline

Activity: 1628
Merit: 1012



View Profile
July 12, 2014, 11:04:44 PM
 #6

This block was timestamped 13 hours ago, and there have been 88 blocks found since. I suspect it won't be confirmed.... Smiley

I suspect you are right. Grin

I wonder how often blocks are orphaned, can anyone point to any data? They must be rare enough that Bitpay can justify doing zero-confirmation invoicing.

BAM: https://blockchain.info/charts/n-orphaned-blocks
CEG5952
Hero Member
*****
Offline Offline

Activity: 658
Merit: 500

Buy and sell bitcoins,


View Profile
July 12, 2014, 11:48:08 PM
 #7

This block was timestamped 13 hours ago, and there have been 88 blocks found since. I suspect it won't be confirmed.... Smiley

I suspect you are right. Grin

I wonder how often blocks are orphaned, can anyone point to any data? They must be rare enough that Bitpay can justify doing zero-confirmation invoicing.

BAM: https://blockchain.info/charts/n-orphaned-blocks

Why does it look like orphaned blocks are only a phenomenon that began happening in the past few months? I guess they don't have much historical data. But as I suspected, the numbers are low.



DannyHamilton
Legendary
*
Offline Offline

Activity: 3388
Merit: 4612



View Profile
July 13, 2014, 03:20:11 AM
 #8

Hey all, still a bit of a newbie with the technical stuff. I made a bitcoin payment last night, about 12 hours ago, and to my surprise when I opened my wallet this morning, the tx showed as unconfirmed, even though I sent a miner's fee (default through blockchain.info). Anyway, when I look at the tx, it was relayed in this block -- https://blockchain.info/block-index/448701 -- which was orphaned.

Does this mean this tx will eventually fail and the original inputs spendable again?

I can't tell for certain unless you tell us which transactionID is your transaction, but I spot checked a few dozen transactions from that block and they all have over 100 confirmations already.
ShameOnYou (OP)
Full Member
***
Offline Offline

Activity: 238
Merit: 100



View Profile
July 13, 2014, 03:50:36 AM
 #9

Hey all, still a bit of a newbie with the technical stuff. I made a bitcoin payment last night, about 12 hours ago, and to my surprise when I opened my wallet this morning, the tx showed as unconfirmed, even though I sent a miner's fee (default through blockchain.info). Anyway, when I look at the tx, it was relayed in this block -- https://blockchain.info/block-index/448701 -- which was orphaned.

Does this mean this tx will eventually fail and the original inputs spendable again?

I can't tell for certain unless you tell us which transactionID is your transaction, but I spot checked a few dozen transactions from that block and they all have over 100 confirmations already.

Here is the transaction:
https://blockchain.info/tx/ae082e9d47be8b8cfaee90a1a50fd64d22e6c37d063302b1b4cc50c9da084ec5

Strange, I hadn't thought to check other transactions in the block. I also noticed the unconfirmed inputs had already been spent and confirmed with 93 confirmations. Kind of confused.
DannyHamilton
Legendary
*
Offline Offline

Activity: 3388
Merit: 4612



View Profile
July 13, 2014, 03:54:05 AM
 #10

Hey all, still a bit of a newbie with the technical stuff. I made a bitcoin payment last night, about 12 hours ago, and to my surprise when I opened my wallet this morning, the tx showed as unconfirmed, even though I sent a miner's fee (default through blockchain.info). Anyway, when I look at the tx, it was relayed in this block -- https://blockchain.info/block-index/448701 -- which was orphaned.

Does this mean this tx will eventually fail and the original inputs spendable again?

I can't tell for certain unless you tell us which transactionID is your transaction, but I spot checked a few dozen transactions from that block and they all have over 100 confirmations already.

Here is the transaction:
https://blockchain.info/tx/ae082e9d47be8b8cfaee90a1a50fd64d22e6c37d063302b1b4cc50c9da084ec5

Strange, I hadn't thought to check other transactions in the block. I also noticed the unconfirmed inputs had already been spent and confirmed with 93 confirmations. Kind of confused.

Seems to be a bug at the blockchain.info website (and perhaps the blockchain.info wallet if that is what you are using).

That transaction already has 119 confirmations:

http://blockr.io/tx/info/ae082e9d47be8b8cfaee90a1a50fd64d22e6c37d063302b1b4cc50c9da084ec5

Those inputs aren't going to be spendable again.  They are already spent, confirmed, and buried deep in the blockchain.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!