Browse Source

add missing CAutoFile::IsNull() check in main

Rebased-From: ccd056a30d
Github-Pull: #5437
tags/v0.15.1
Philip Kaufmann 6 years ago
parent
commit
84857e87e4
No account linked to committer's email address
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/main.cpp

+ 2
- 0
src/main.cpp View File

@@ -1086,6 +1086,8 @@ bool GetTransaction(const uint256 &hash, CTransaction &txOut, uint256 &hashBlock
CDiskTxPos postx;
if (pblocktree->ReadTxIndex(hash, postx)) {
CAutoFile file(OpenBlockFile(postx, true), SER_DISK, CLIENT_VERSION);
if (file.IsNull())
return error("%s: OpenBlockFile failed", __func__);
CBlockHeader header;
try {
file >> header;

Loading…
Cancel
Save