check txPos for leveldb.

This commit is contained in:
Christopher Jeffrey 2014-12-03 14:20:54 -08:00
parent 013c5faf3e
commit 285c7f1d45
1 changed files with 11 additions and 8 deletions

View File

@ -6347,16 +6347,19 @@ get_block_by_tx(const std::string itxhash, CBlock& rcblock, CBlockIndex **rcbloc
CDataStream ssValue(slValue.data(), slValue.data() + slValue.size(), SER_DISK, CLIENT_VERSION);
CDiskBlockPos blockPos;
ssValue >> blockPos.nFile;
ssValue >> blockPos.nPos;
// CDiskBlockPos blockPos;
// ssValue >> blockPos.nFile;
// ssValue >> blockPos.nPos;
// CDiskTxPos txPos;
// // ssValue >> txPos.nFile;
// // ssValue >> txPos.nPos;
// txPos.nFile = blockPos.nFile;
// txPos.nPos = blockPos.nPos;
// ssValue >> txPos.nTxOffset;
CDiskTxPos txPos;
// ssValue >> txPos.nFile;
// ssValue >> txPos.nPos;
txPos.nFile = blockPos.nFile;
txPos.nPos = blockPos.nPos;
ssValue >> txPos.nTxOffset;
ssValue >> txPos;
CTransaction ctx;
uint256 blockhash;