From acb577abe38a25fc82e613f8b141331a605bf55e Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Thu, 23 Oct 2014 15:31:54 -0700 Subject: [PATCH] clean up previousblockhash. --- src/bitcoindjs.cc | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/bitcoindjs.cc b/src/bitcoindjs.cc index f61509e3..5aeeea32 100644 --- a/src/bitcoindjs.cc +++ b/src/bitcoindjs.cc @@ -2824,20 +2824,8 @@ cblock_to_jsblock(const CBlock& cblock, CBlockIndex* cblock_index, Local // Headers // jsblock->Set(NanNew("version"), NanNew(cblock.nVersion)); - jsblock->Set(NanNew("previousblockhash"), NanNew(cblock.hashPrevBlock.ToString())); -#if 0 - if (cblock_index && cblock_index->pprev) { - jsblock->Set(NanNew("previousblockhash"), NanNew(cblock_index->pprev->GetBlockHash().GetHex())); - } else { - // genesis - jsblock->Set(NanNew("previousblockhash"), - NanNew("0000000000000000000000000000000000000000000000000000000000000000")); - } -#endif - jsblock->Set(NanNew("merkleroot"), NanNew(cblock.hashMerkleRoot.GetHex())); - jsblock->Set(NanNew("time"), NanNew((unsigned int)cblock.GetBlockTime())->ToUint32()); jsblock->Set(NanNew("bits"), NanNew((unsigned int)cblock.nBits)->ToUint32()); jsblock->Set(NanNew("nonce"), NanNew((unsigned int)cblock.nNonce)->ToUint32());