aboutsummaryrefslogtreecommitdiff
path: root/src/checkpoints.cpp
diff options
context:
space:
mode:
authorMike Hearn <hearn@google.com>2013-05-07 15:16:25 +0200
committerMike Hearn <hearn@google.com>2013-06-19 16:28:52 +0200
commit0e4b31755534fac4ea6c20a60f719e3694252220 (patch)
tree80f576f67c855485e5d82007b98a45536bbf2f9a /src/checkpoints.cpp
parent70e7fba06da36218688a4cae4a5d12332c714247 (diff)
downloadbitcoin-0e4b31755534fac4ea6c20a60f719e3694252220.tar.xz
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.
Diffstat (limited to 'src/checkpoints.cpp')
-rw-r--r--src/checkpoints.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/checkpoints.cpp b/src/checkpoints.cpp
index 7643ec5df8..ba29e2463e 100644
--- a/src/checkpoints.cpp
+++ b/src/checkpoints.cpp
@@ -56,7 +56,7 @@ namespace Checkpoints
60000.0 // * estimated number of transactions per day after checkpoint
};
- static MapCheckpoints mapCheckpointsTestnet =
+ static MapCheckpoints mapCheckpointsTestnet =
boost::assign::map_list_of
( 546, uint256("000000002a936ca763904c3c35fce2f3556c559c0214345d31b1bcebf76acb70"))
;
@@ -68,7 +68,7 @@ namespace Checkpoints
};
const CCheckpointData &Checkpoints() {
- if (fTestNet)
+ if (TestNet())
return dataTestnet;
else
return data;