aboutsummaryrefslogtreecommitdiff
path: root/src/chainparams.h
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2013-08-15 18:51:06 -0700
committerGavin Andresen <gavinandresen@gmail.com>2013-08-15 18:51:06 -0700
commit9be4cff5f683d8d4b151a76c598e22e22ba63049 (patch)
treef73cb1fd1e21ef1e41235c4ebf1dcd074aef0707 /src/chainparams.h
parent47491a90b6544fbb99dc00b3deb554da66c3a54a (diff)
parent2461aba1ac4e0673ed0568713b48e4bb37c8b041 (diff)
Merge pull request #2876 from sipa/fixreorgcrash
Fix reorganization crash
Diffstat (limited to 'src/chainparams.h')
-rw-r--r--src/chainparams.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/chainparams.h b/src/chainparams.h
index 1930e49afb..0dac79aed4 100644
--- a/src/chainparams.h
+++ b/src/chainparams.h
@@ -101,4 +101,8 @@ inline bool TestNet() {
return Params().NetworkID() == CChainParams::TESTNET;
}
+inline bool RegTest() {
+ return Params().NetworkID() == CChainParams::REGTEST;
+}
+
#endif