aboutsummaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
authorJeff Garzik <[email protected]>2012-11-15 18:20:35 -0800
committerJeff Garzik <[email protected]>2012-11-15 18:20:35 -0800
commit824e19605487a0e6a36c212ef23ac31cb643dc90 (patch)
tree250b31979b8159f2f16e6efdaa96e47c69ef3293 /src/main.h
parentMerge pull request #2012 from luke-jr/invblk_errs (diff)
parentsome small fixes for main.cpp/.h (diff)
downloaddiscoin-824e19605487a0e6a36c212ef23ac31cb643dc90.tar.xz
discoin-824e19605487a0e6a36c212ef23ac31cb643dc90.zip
Merge pull request #2005 from Diapolo/fixes_main
some small fixes for main.cpp/.h
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 622875d4a..ab341af6f 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 */