2

I'd like to determine the probability of a fairly powerful miner (or pool) generating 6 sequential blocks in an hour. (so they would rebroadcast it later)

For example, given

  • Hash/second: X
  • A target of: Y
  • A probability of getting 6 blocks in less than an hour: Z

What is the probability that sequential 6 blocks will be created in

  • 1 hour
  • 1 Day
  • 1 Week
  • 3 months

I'd like to find the formula to determine this so I can graph the exponential difficulty of how much power an attacker will need to thwart the network.

There is discussion that Litecoin is more resistant to this type of attack, but so far it seems unfounded. I'm looking for thought that would indicate otherwise.

1

I would first like to comment that there is widespread confusion about how double-spending works. In particular, the question you've asked here is irrelevant. I urge anyone who is seriously examining this issue to carefully read Analysis of Hashrate-based Double Spending, which also examines the effect of changing the average time between blocks.

For your question as is - do you mean

  1. The probability that in a given hour, the miner will find at least 6 blocks? Or
  2. The probability that the event "the miner finds 6 blocks in a row, without the other miners finding blocks between him" will happen in a given hour?
  3. Or something else?

The first option is relatively easy - If the average time between blocks is T, the miner's proportion of the hashrate is q, and you're looking at a time period S, he will find on average (Sp/T) blocks, following the Poisson Distribution. So the probability this will be at least 6 is

1 - \sum_{x=0}^{5} (exp(-Sq/T) * (Sq/T)^x / x!)

For example, if q = 0.5 then that's 8.4% for 1 hour, and for 1 day it's 99.9999999999999999999999%.

I'll need to work out the 2nd option, but the answer to the easier question "What is the chance to find 6 blocks in a row starting right now" is of course q6.

  • I will read your article with the thought "What can an attacker do with a q=0.5 and a probability of 8.4%"... I suspect it will cause some chain reorgs and possibly the chain to be built on top of these 6 blocks, possibly not – Christopher Sep 4 '13 at 11:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.