HomePhabricator

Introduce a CChainParameters singleton class and regtest mode.
0e4b31755534Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Introduce a CChainParameters singleton class and regtest mode.

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.

Details

Provenance
Mike Hearn <hearn@google.com>Authored on May 7 2013, 13:16
deadalnixPushed on May 14 2017, 22:04
Parents
rABC70e7fba06da3: Move implementation of some CBlockLocator methods
Branches
Unknown
Tags
Unknown

Event Timeline

Mike Hearn <hearn@google.com> committed rABC0e4b31755534: Introduce a CChainParameters singleton class and regtest mode. (authored by Mike Hearn <hearn@google.com>).Jun 19 2013, 14:28