cleanup more code.

This commit is contained in:
Christopher Jeffrey 2014-12-03 20:38:30 -08:00
parent c4a0db6c8f
commit 9fcd5f3b52

View File

@ -6143,29 +6143,13 @@ read_addr(const std::string addr, const int64_t blockindex) {
CDiskBlockIndex index; CDiskBlockIndex index;
ssValue >> 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; CDiskBlockPos blockPos;
blockPos.nFile = index.nFile; blockPos.nFile = index.nFile;
blockPos.nPos = index.nDataPos; blockPos.nPos = index.nDataPos;
CDiskBlockPos undoPos; if (index.nHeight != blockindex) {
blockPos.nFile = index.nFile; goto found;
blockPos.nPos = index.nUndoPos; }
printf("nHeight: %u\n", index.nHeight);
//if (nHeight != blockindex) {
// goto found;
//}
CBlock cblock; CBlock cblock;