aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-10-22 10:46:24 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2014-10-22 10:47:14 +0200
commitf984c7d7adf40e8517437f7b8c3704a63e1ca034 (patch)
treef26d6b80e8a8cb3e38388d9990f53215dc6cd4a1 /src/test
parent7305620599c8fc7d152bb0c0c0bbe162c6c1a912 (diff)
parenta873823864a00f68772eb2b85a70e933839ca3f5 (diff)
downloadbitcoin-f984c7d7adf40e8517437f7b8c3704a63e1ca034.tar.xz
Merge pull request #5108
a873823 CAutoFile: Explicit Get() and remove unused methods (Wladimir J. van der Laan) fef24ca Add IsNull() to class CAutoFile and remove operator ! (Ruben Dario Ponticeli)
Diffstat (limited to 'src/test')
-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;