Bitcoin Forum
April 24, 2024, 08:35:39 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Blockchain forks and proof of their age?  (Read 1168 times)
No_2 (OP)
Hero Member
*****
Offline Offline

Activity: 901
Merit: 1031


BTC: the beginning of stake-based public resources


View Profile
July 10, 2015, 08:01:55 AM
 #1

When the blockchain forks people often point at external sources of validation for this such as blockchain.info.

I’m wondering if the blockchain itself is able to keep track of forks in a provable way – i.e. using proof of work or similar - and if and of so if there is any way to prove the age of the blocks on a fork. E.g. could someone mine a fork weeks/months after it was started and add new blocks, as long as the median age was within the correct range would the blocks be acceptable (although most nodes would not propagate them)?

I understand that Gavin uses a private key to lock the blockchain at a certain age into state as "fixed" from the perspective of the core bitcoin software, does this have any effect on forks that have occurred in the past?
1713947739
Hero Member
*
Offline Offline

Posts: 1713947739

View Profile Personal Message (Offline)

Ignore
1713947739
Reply with quote  #2

1713947739
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713947739
Hero Member
*
Offline Offline

Posts: 1713947739

View Profile Personal Message (Offline)

Ignore
1713947739
Reply with quote  #2

1713947739
Report to moderator
1713947739
Hero Member
*
Offline Offline

Posts: 1713947739

View Profile Personal Message (Offline)

Ignore
1713947739
Reply with quote  #2

1713947739
Report to moderator
1713947739
Hero Member
*
Offline Offline

Posts: 1713947739

View Profile Personal Message (Offline)

Ignore
1713947739
Reply with quote  #2

1713947739
Report to moderator
fbueller
Sr. Member
****
Offline Offline

Activity: 412
Merit: 266


View Profile
July 10, 2015, 03:57:51 PM
 #2

Gavin does not use a private key to lock the blockchain every now and then.

You may be referring to checkpoints however? These are blocks that are so deep (3 months worth of confirmations), we can be certain they should not change. Hence, their hashes are save, to guide new peers when downloading.

If a malicious party tried to make his own fork from block 0 - block 1000, he could do it quite easily nowadays. But with these checkpoints, at least a hash for certain heights is committed to, so there's no way for the blocks between them to change.

There usually isn't much evidence for forks. Blockchain only has a partial view of the network, and so do you.. So neither of you will have all the forks.


You are correct the old forks could be continued on in the background, and maybe released later - but only since the highest checkpoint (cos earlier hashes are committed to) And IF they caught up and produced more work than us, they'd displace all the transactions confirmed since the fork.

Since this is a poisson process, it's unlikely to happen unless they have enough hashrate to catch up AND outpace the network (larger than 50%)

Bitwasp Developer.
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3374
Merit: 6535


Just writing some code


View Profile WWW
July 10, 2015, 04:14:09 PM
 #3

When the blockchain forks people often point at external sources of validation for this such as blockchain.info.

I’m wondering if the blockchain itself is able to keep track of forks in a provable way – i.e. using proof of work or similar - and if and of so if there is any way to prove the age of the blocks on a fork. E.g. could someone mine a fork weeks/months after it was started and add new blocks, as long as the median age was within the correct range would the blocks be acceptable (although most nodes would not propagate them)?
It is not possible. A block is only aware of itself and the block before it. Your node could theoretically record every single fork, but that would take a lot of data since orphan blocks (essentially mini-forks) happen every single day. It would require a connection to every single node in order to catch every single fork.

Someone could mine a fork for a long time, but the only way for it to be accepted is if it is longer and more difficult. The timestamps don't matter. This would only work well if the miner was extremely lucky or had more hash power than the main network (assuming he isn't mining there also).

I understand that Gavin uses a private key to lock the blockchain at a certain age into state as "fixed" from the perspective of the core bitcoin software, does this have any effect on forks that have occurred in the past?

Actually no. Gavin does not use a private key to lock anything or put anything into a "fixed" state. There is nothing that does this. However, there are several checkpoint blocks hard coded into the code. If your blockchain doesn't match the checkpoint blocks, then all nodes will reject it.

Warren Buffet
Full Member
***
Offline Offline

Activity: 132
Merit: 100


View Profile
July 10, 2015, 04:34:06 PM
 #4

I understand that Gavin uses a private key to lock the blockchain at a certain age into state as "fixed" from the perspective of the core bitcoin software, does this have any effect on forks that have occurred in the past?


Incredible that this is coming from a hero member. Is it a purchased account ?
gmaxwell
Moderator
Legendary
*
expert
Offline Offline

Activity: 4158
Merit: 8382



View Profile WWW
July 10, 2015, 11:57:28 PM
 #5

That kind of profound confuseion is happening much more often because there are many altcoins that use centeralized blocksigning to pin the chain and prevent reorgs. Unfortunately they call this mechenism "checkpoints", though it has basically no relationship to the really narrow thing in Bitcoin by the same name.


Irony in suggesting "external sources of validation" like block explorers is that in the recent chain fork most of them were wrong.
newb4now
Hero Member
*****
Offline Offline

Activity: 686
Merit: 500


View Profile
July 11, 2015, 12:04:13 AM
 #6

That kind of profound confuseion is happening much more often because there are many altcoins that use centeralized blocksigning to pin the chain and prevent reorgs. Unfortunately they call this mechenism "checkpoints", though it has basically no relationship to the really narrow thing in Bitcoin by the same name.


Irony in suggesting "external sources of validation" like block explorers is that in the recent chain fork most of them were wrong.

This is exactly why it is good to verify a transaction on multiple block explorers, especially if you are only waiting for a relatively small number of confirmations.

I think too many people solely rely on 1 block explorer and still think 1 confirmation is okay
gmaxwell
Moderator
Legendary
*
expert
Offline Offline

Activity: 4158
Merit: 8382



View Profile WWW
July 11, 2015, 12:08:56 AM
 #7

This is exactly why it is good to verify a transaction on multiple block explorers, especially if you are only waiting for a relatively small number of confirmations.
I think too many people solely rely on 1 block explorer and still think 1 confirmation is okay
You could have checked more than four of them and wou ld have gotten the same incorrect data.
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!