Browse Source

Test

pull/4/head
jl777 6 years ago
parent
commit
500f38a978
  1. 4
      src/main.cpp

4
src/main.cpp

@ -1614,16 +1614,18 @@ bool myGetTransaction(const uint256 &hash, CTransaction &txOut, uint256 &hashBlo
return true;
}
}
return(false);
fprintf(stderr,"check disk\n");
if (fTxIndex) {
CDiskTxPos postx;
fprintf(stderr,"ReadTxIndex\n");
if (pblocktree->ReadTxIndex(hash, postx)) {
fprintf(stderr,"OpenBlockFile\n");
CAutoFile file(OpenBlockFile(postx, true), SER_DISK, CLIENT_VERSION);
if (file.IsNull())
return error("%s: OpenBlockFile failed", __func__);
CBlockHeader header;
fprintf(stderr,"seek and read\n");
try {
file >> header;
fseek(file.Get(), postx.nTxOffset, SEEK_CUR);

Loading…
Cancel
Save