Bitcoin Forum
December 15, 2024, 12:58:26 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Number of confirmations going down?  (Read 879 times)
jon_smark (OP)
Member
**
Offline Offline

Activity: 90
Merit: 10


View Profile
October 23, 2012, 02:50:38 PM
 #1

I've witnessed something puzzling on the Testnet: three blocks I mined had their number of confirmations suddenly go down.  One of them jumped from 285 to 263, though it has since monotonically increased again, as one would expect.  I thought that the number of confirmations could only increase, unless the block finds itself in an orphaned fork, in which case the number of confirmations becomes meaningless. So, what may explain this sort of situation?
TangibleCryptography
Sr. Member
****
Offline Offline

Activity: 476
Merit: 250


Tangible Cryptography LLC


View Profile WWW
October 23, 2012, 03:03:32 PM
 #2

The number of confirmations is the confirmations of the current longest chain.  
Orphaned blocks are completely ignored so a tx which is included in a block in only one chain will revert to 0-confirms in the event an alternate chain becomes the longest.  It is possible for a tx to be included in blocks of different heights on more than one fork.  

If your tx was included in block# C-285 (C being current block height of the longest chain) in one fork and C-263 in another fork when the second fork replaced the first one as the longest chain your node would recompute the number of confirms and show 263.

Note: such a deep replacement in the main-net is highly unlikely outside of a 51% attack or a subnet becoming islanded for an extended period of time (network breakdown).

SgtSpike
Legendary
*
Offline Offline

Activity: 1400
Merit: 1005



View Profile
October 24, 2012, 07:21:52 PM
 #3

I'd be interested in knowing why such a fork took place.  Is someone testing a 51% attack method?
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!