git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
05c5973
)
Fix segfault on testnet
author
alex
<alex@alex-VirtualBox.(none)>
Wed, 22 Jan 2014 20:03:35 +0000 (
00:03
+0400)
committer
alex
<alex@alex-VirtualBox.(none)>
Wed, 22 Jan 2014 20:03:35 +0000 (
00:03
+0400)
src/main.cpp
patch
|
blob
|
history
diff --git
a/src/main.cpp
b/src/main.cpp
index
c4fead8
..
1c5b0da
100644
(file)
--- a/
src/main.cpp
+++ b/
src/main.cpp
@@
-1821,7
+1821,7
@@
bool SetBestChain(CBlockIndex* pindexNew)
// special case for attaching the genesis block
// note that no ConnectBlock is called, so its coinbase output is non-spendable
- if (pindexGenesisBlock == NULL && pindexNew->GetBlockHash() == hashGenesisBlock)
+ if (pindexGenesisBlock == NULL && pindexNew->GetBlockHash() == (!fTestNet ? hashGenesisBlock : hashGenesisBlockTestNet))
{
view.SetBestBlock(pindexNew);
if (!view.Flush())