diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-10-20 12:45:50 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-10-22 10:18:19 +0200 |
commit | a873823864a00f68772eb2b85a70e933839ca3f5 (patch) | |
tree | 851616d84523434fe11a5a47c59ca2b2606935ff /src/test/checkblock_tests.cpp | |
parent | fef24cab1a4a13a864783dfcd6613ce8100f990d (diff) | |
download | bitcoin-a873823864a00f68772eb2b85a70e933839ca3f5.tar.xz |
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.cpp | 2 |
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; |