10.02.2016 Views

Bitcoin and Cryptocurrency Technologies

1Qqc4BN

1Qqc4BN

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

If our altcoin is merge‐mined, we hope that many <strong>Bitcoin</strong> miners will mine it, because doing so doesn’t<br />

require any additional hash power. It requires a modicum of additional computational resources for<br />

processing blocks <strong>and</strong> transactions, <strong>and</strong> miners need to know <strong>and</strong> care enough about our altcoin to<br />

even bother to mine it. Let’s say 25% of <strong>Bitcoin</strong> miners by hash power are mining our altcoin. This<br />

means that on average 25% of <strong>Bitcoin</strong> blocks contain pointers to altcoin blocks. It seems, then, that in<br />

our altcoin a new block would be mined on average every 40 minutes. Worse, while the altcoin is still<br />

being bootstrapped <strong>and</strong> the fraction of <strong>Bitcoin</strong> miners mining it is very small, the time between blocks<br />

will be hours or days, which is unacceptable.<br />

Can we ensure that blocks of a merge‐mined altcoin are created at a steady rate, as high or low as we<br />

want, irrespective of the fraction of <strong>Bitcoin</strong> miners mining it? The answer is yes. The trick is that even<br />

though the mining task for the altcoin is the same as that of <strong>Bitcoin</strong>, the mining ​target​need not be.<br />

The altcoin network computes the target <strong>and</strong> difficulty for its blocks independently of the <strong>Bitcoin</strong><br />

network. Just as <strong>Bitcoin</strong> adjusts its mining target so that blocks are found every 10 minutes on<br />

average, the altcoin would adjust its own target so that blocks in the altcoin are found every 10<br />

minutes, or any other fixed value.<br />

Altcoin blocks<br />

<strong>Bitcoin</strong> blocks mined by altcoin merge‐miners<br />

<strong>Bitcoin</strong> blocks mined by non‐altcoin miners<br />

Attempted <strong>Bitcoin</strong> blocks found by altcoin merge‐miners that met the altcoin’s difficulty<br />

target but not <strong>Bitcoin</strong>’s target<br />

Figure 10.5: merge mining.<br />

This means that the altcoin’s target will typically be much less than <strong>Bitcoin</strong>’s target, <strong>and</strong> some (or even<br />

most) altcoin blocks will not be pointed to by valid <strong>Bitcoin</strong> blocks. But that’s okay! You should think of<br />

the <strong>Bitcoin</strong> block chain <strong>and</strong> the altcoin block chain as two parallel chains, with occasional pointers<br />

from a <strong>Bitcoin</strong> block to an altcoin block. This is illustrated in Figure 10.5. In this example, 60% of<br />

<strong>Bitcoin</strong> miners mine the altcoin, <strong>and</strong> the altcoin’s time‐between‐blocks is 5 minutes. This means that<br />

277

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!