• Mike Hearn's avatar
    Introduce a CChainParameters singleton class and regtest mode. · d4d533e0
    Mike Hearn authored
    The new class is accessed via the Params() method and holds
    most things that vary between main, test and regtest networks.
    The regtest mode has two purposes, one is to run the
    bitcoind/bitcoinj comparison tool which compares two separate
    implementations of the Bitcoin protocol looking for divergence.
    
    The other is that when run, you get a local node which can mine
    a single block instantly, which is highly convenient for testing
    apps during development as there's no need to wait 10 minutes for
    a block on the testnet.
    d4d533e0
rpcmining.cpp 13.8 KB