git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
4abd52b
)
PPCoin: bug fix of GetBlockTrust() introduced with 32ad4f42
author
Sunny King
<p2pcoin@gmail.com>
Thu, 29 Dec 2011 23:49:32 +0000 (23:49 +0000)
committer
Sunny King
<p2pcoin@gmail.com>
Thu, 29 Dec 2011 23:56:58 +0000 (23:56 +0000)
getinfo command crashes daemon with only the genesis block
src/main.h
patch
|
blob
|
history
diff --git
a/src/main.h
b/src/main.h
index
1bcad19
..
6e5cac5
100644
(file)
--- a/
src/main.h
+++ b/
src/main.h
@@
-1100,7
+1100,7
@@
public:
int64 GetBlockTrust() const
{
- return (nChainTrust - pprev->nChainTrust);
+ return (nChainTrust - (pprev? pprev->nChainTrust : 0));
}
bool IsInMainChain() const