From f18c499b7344508f08103532f5f7be7341c32f04 Mon Sep 17 00:00:00 2001 From: Sunny King Date: Fri, 27 Apr 2012 03:57:59 +0100 Subject: [PATCH] PPCoin: Fix bug in CBlock::ReadFromDisk() since 94ced845 ERROR: CBlock::ReadFromDisk() : errors in block header ERROR: CheckProofOfWork() : hash doesn't match nBits --- src/main.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/main.h b/src/main.h index 6244695..bd07ceb 100644 --- a/src/main.h +++ b/src/main.h @@ -1004,7 +1004,7 @@ public: filein >> *this; // Check the header - if (IsProofOfWork() && !CheckProofOfWork(GetHash(), nBits)) + if (fReadTransactions && IsProofOfWork() && !CheckProofOfWork(GetHash(), nBits)) return error("CBlock::ReadFromDisk() : errors in block header"); return true; -- 1.7.1