aboutsummaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
authorPhilip Kaufmann <phil.kaufmann@t-online.de>2012-11-11 13:11:42 +0100
committerPhilip Kaufmann <phil.kaufmann@t-online.de>2012-11-11 13:16:42 +0100
commit13e5cce4c3df5c3d66bb37eb8e169fce02095840 (patch)
treec6919a95ffd00ebccf1b0e88b492d60e11a53169 /src/main.h
parente12efb9d33e0daa21a0cde6f26c4b6cc8f0ff48f (diff)
downloadbitcoin-13e5cce4c3df5c3d66bb37eb8e169fce02095840.tar.xz
some small fixes for main.cpp/.h
- remove an unwanted ";" at the end of the ~CCoinsView() destructor - in FindBlockPos() and FindUndoPos() only call fclose(), is file is open - fix an error string in the CBlockUndo class
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main.h b/src/main.h
index e346726045..25a2a285db 100644
--- a/src/main.h
+++ b/src/main.h
@@ -733,7 +733,6 @@ public:
bool WriteToDisk(CDiskBlockPos &pos)
{
-
// Open history file to append
CAutoFile fileout = CAutoFile(OpenUndoFile(pos), SER_DISK, CLIENT_VERSION);
if (!fileout)
@@ -746,7 +745,7 @@ public:
// Write undo data
long fileOutPos = ftell(fileout);
if (fileOutPos < 0)
- return error("CBlock::WriteToDisk() : ftell failed");
+ return error("CBlockUndo::WriteToDisk() : ftell failed");
pos.nPos = (unsigned int)fileOutPos;
fileout << *this;
@@ -757,7 +756,6 @@ public:
return true;
}
-
};
/** pruned version of CTransaction: only retains metadata and unspent transaction outputs
@@ -1872,7 +1870,7 @@ public:
virtual bool GetStats(CCoinsStats &stats);
// As we use CCoinsViews polymorphically, have a virtual destructor
- virtual ~CCoinsView() {};
+ virtual ~CCoinsView() {}
};
/** CCoinsView backed by another CCoinsView */