From 9fcd5f3b52023c1d1fbc51816962de45acc4abad Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 3 Dec 2014 20:38:30 -0800 Subject: [PATCH] cleanup more code. --- src/bitcoindjs.cc | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/src/bitcoindjs.cc b/src/bitcoindjs.cc index ba528af1..2b4f892b 100644 --- a/src/bitcoindjs.cc +++ b/src/bitcoindjs.cc @@ -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;