Post
Topic
Board Beginners & Help
Re: How to kick start a private bitcoin network?
by
luxgladius
on 23/06/2011, 20:11:29 UTC
Then you'll need to modify the code and recompile. The place I saw testnet being referenced was here:

Code:
void BitcoinMiner()
{
        ...
        while (vNodes.empty() || IsInitialBlockDownload())
        {
            Sleep(1000);
            if (fShutdown)
                return;
            if (!fGenerateBitcoins)
                return;
        }

...

bool IsInitialBlockDownload()
{
    if (pindexBest == NULL || (!fTestNet && nBestHeight < 118000))
        return true;

So currently it's hard-coded to not even try to generate blocks until after it has 118000 unless it's on a test net. Among other things affected by the testnet flag are the genesis block.