diff options
| author | Pieter Wuille <[email protected]> | 2013-06-22 06:56:14 -0700 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2013-06-22 06:56:14 -0700 |
| commit | 01b45731b75a19ac194b4206b20716bfedcb2357 (patch) | |
| tree | 90bd76e552d0ac7b44382885e212d9705fe24d96 /src/txdb.cpp | |
| parent | Merge pull request #2781 from sipa/keytimemem (diff) | |
| parent | Introduce a CChainParameters singleton class and regtest mode. (diff) | |
| download | discoin-01b45731b75a19ac194b4206b20716bfedcb2357.tar.xz discoin-01b45731b75a19ac194b4206b20716bfedcb2357.zip | |
Merge pull request #2632 from mikehearn/chainparams
Refactor chain-specific tweaks into a CChainParams class and introduce a regtest mode
Diffstat (limited to 'src/txdb.cpp')
| -rw-r--r-- | src/txdb.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/txdb.cpp b/src/txdb.cpp index 3d34710d2..34836eaa9 100644 --- a/src/txdb.cpp +++ b/src/txdb.cpp @@ -6,6 +6,7 @@ #include "txdb.h" #include "main.h" #include "hash.h" +#include "chainparams.h" using namespace std; @@ -223,7 +224,7 @@ bool CBlockTreeDB::LoadBlockIndexGuts() pindexNew->nTx = diskindex.nTx; // Watch for genesis block - if (pindexGenesisBlock == NULL && diskindex.GetBlockHash() == hashGenesisBlock) + if (pindexGenesisBlock == NULL && diskindex.GetBlockHash() == Params().HashGenesisBlock()) pindexGenesisBlock = pindexNew; if (!pindexNew->CheckIndex()) |