aboutsummaryrefslogtreecommitdiff
path: root/src/test/checkblock_tests.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-10-20 12:45:50 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2014-10-22 10:18:19 +0200
commita873823864a00f68772eb2b85a70e933839ca3f5 (patch)
tree851616d84523434fe11a5a47c59ca2b2606935ff /src/test/checkblock_tests.cpp
parentfef24cab1a4a13a864783dfcd6613ce8100f990d (diff)
CAutoFile: Explicit Get() and remove unused methods
Also add documentation to some methods.
Diffstat (limited to 'src/test/checkblock_tests.cpp')
-rw-r--r--src/test/checkblock_tests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/checkblock_tests.cpp b/src/test/checkblock_tests.cpp
index 67d40a45c7..9151fdc0c8 100644
--- a/src/test/checkblock_tests.cpp
+++ b/src/test/checkblock_tests.cpp
@@ -36,7 +36,7 @@ bool read_block(const std::string& filename, CBlock& block)
fseek(fp, 8, SEEK_SET); // skip msgheader/size
CAutoFile filein(fp, SER_DISK, CLIENT_VERSION);
- if (!filein) return false;
+ if (filein.IsNull()) return false;
filein >> block;