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