X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Frpcblockchain.cpp;h=d19869dbb568c6b4c639ef93b12d84f3fa0b208f;hb=27e35b80c7f1b1bbf43f1d7b719a2569e8149f9f;hp=054dca27d5cfaf368b5d01342c2d610b1639fbc5;hpb=0dd25284c30dfdbfeff9a882dd801be8cacd0859;p=novacoin.git diff --git a/src/rpcblockchain.cpp b/src/rpcblockchain.cpp index 054dca2..d19869d 100644 --- a/src/rpcblockchain.cpp +++ b/src/rpcblockchain.cpp @@ -104,7 +104,7 @@ Object blockToJSON(const CBlock& block, const CBlockIndex* blockindex, bool fPri Object result; result.push_back(Pair("hash", block.GetHash().GetHex())); CMerkleTx txGen(block.vtx[0]); - txGen.SetMerkleBranch(&block); + txGen.SetMerkleBranch(block); result.push_back(Pair("confirmations", (int)txGen.GetDepthInMainChain())); result.push_back(Pair("size", (int)::GetSerializeSize(block, SER_NETWORK, PROTOCOL_VERSION))); result.push_back(Pair("height", blockindex->nHeight));