Bitcoin Forum
April 30, 2024, 03:00:36 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Mathematics of generating an alternate chain (Bitcoin whitepaper).  (Read 167 times)
tobasco (OP)
Member
**
Offline Offline

Activity: 61
Merit: 12


View Profile WWW
October 23, 2019, 04:13:56 PM
 #1

I've been looking at the equations from the bitcoin whitepaper. It gives the following probabilities of "catching up" from z blocks behind (with my 0.1 probability of mining a block) as follows:

Code:
q=0.1
z=0    P=1.0000000
z=1    P=0.2045873
z=2    P=0.0509779
z=3    P=0.0131722
z=4    P=0.0034552
z=5    P=0.0009137
z=6    P=0.0002428
z=7    P=0.0000647
z=8    P=0.0000173
z=9    P=0.0000046
z=10   P=0.0000012

However, if I want to replace the top block in the chain, catching up isn't going to be enough as I need to build a longer chain for other nodes to adopt.

So would it by correct to say my probability of replacing the top block in the chain would be:

Code:
z=2    P=0.0509779

Because I need to build a chain one block longer than the number of blocks I need to catch up with. Is that correct?

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!