git://git.novaco.in
/
novacoin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
PPCoin: bug fix of GetBlockTrust() introduced with 32ad4f42
[novacoin.git]
/
src
/
main.h
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