cleanup more code.

This commit is contained in:
Christopher Jeffrey 2014-12-03 20:38:30 -08:00
parent c4a0db6c8f
commit 9fcd5f3b52
1 changed files with 3 additions and 19 deletions

View File

@ -6143,29 +6143,13 @@ read_addr(const std::string addr, const int64_t blockindex) {
CDiskBlockIndex index;
ssValue >> index;
CBlockHeader header;
header.nVersion = index.nVersion;
header.hashPrevBlock = index.hashPrev;
header.hashMerkleRoot = index.hashMerkleRoot;
header.nTime = index.nTime;
header.nBits = index.nBits;
header.nNonce = index.nNonce;
printf("hash: %s\n", header.GetHash().GetHex().c_str());
printf("rhash: %s\n", blockhash.GetHex().c_str());
CDiskBlockPos blockPos;
blockPos.nFile = index.nFile;
blockPos.nPos = index.nDataPos;
CDiskBlockPos undoPos;
blockPos.nFile = index.nFile;
blockPos.nPos = index.nUndoPos;
printf("nHeight: %u\n", index.nHeight);
//if (nHeight != blockindex) {
// goto found;
//}
if (index.nHeight != blockindex) {
goto found;
}
CBlock cblock;