|
|
|
@ -268,7 +268,9 @@ bool TxIndex::FindTx(const uint256& tx_hash, uint256& block_hash, CTransactionRe
|
|
|
|
|
CBlockHeader header;
|
|
|
|
|
try {
|
|
|
|
|
file >> header;
|
|
|
|
|
fseek(file.Get(), postx.nTxOffset, SEEK_CUR);
|
|
|
|
|
if (fseek(file.Get(), postx.nTxOffset, SEEK_CUR)) {
|
|
|
|
|
return error("%s: fseek(...) failed", __func__);
|
|
|
|
|
}
|
|
|
|
|
file >> tx;
|
|
|
|
|
} catch (const std::exception& e) {
|
|
|
|
|
return error("%s: Deserialize or I/O error - %s", __func__, e.what());
|
|
|
|
|