aboutsummaryrefslogtreecommitdiff
path: root/src/checkpoints.cpp
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2013-07-23 17:46:05 +0200
committerMatt Corallo <git@bluematt.me>2013-07-23 18:02:26 +0200
commitd9ace8abe804a4134e5e77a0f9f82a52ea339762 (patch)
tree18a56ebad9ffde37a41a33f80d8a4934d698103b /src/checkpoints.cpp
parent0a740650a52a21b7d82b43524017c87643af3224 (diff)
downloadbitcoin-d9ace8abe804a4134e5e77a0f9f82a52ea339762.tar.xz
Don't use checkpoints and accept nonstd txn on -regtest
Diffstat (limited to 'src/checkpoints.cpp')
-rw-r--r--src/checkpoints.cpp17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/checkpoints.cpp b/src/checkpoints.cpp
index ba29e2463e..0716cfca31 100644
--- a/src/checkpoints.cpp
+++ b/src/checkpoints.cpp
@@ -67,11 +67,24 @@ namespace Checkpoints
300
};
+ static MapCheckpoints mapCheckpointsRegtest =
+ boost::assign::map_list_of
+ ( 0, uint256("0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206"))
+ ;
+ static const CCheckpointData dataRegtest = {
+ &mapCheckpointsRegtest,
+ 0,
+ 0,
+ 0
+ };
+
const CCheckpointData &Checkpoints() {
- if (TestNet())
+ if (Params().NetworkID() == CChainParams::TESTNET)
return dataTestnet;
- else
+ else if (Params().NetworkID() == CChainParams::MAIN)
return data;
+ else
+ return dataRegtest;
}
bool CheckBlock(int nHeight, const uint256& hash)