X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Frpcblockchain.cpp;h=d19869dbb568c6b4c639ef93b12d84f3fa0b208f;hb=05df71c9c292877e7469884227fd3ba84d02908b;hp=05bcbff732e23e9f6d5309c50cdf7b1347521a05;hpb=5e762fd51fa59cad1e0107a60023a61a904e0174;p=novacoin.git diff --git a/src/rpcblockchain.cpp b/src/rpcblockchain.cpp index 05bcbff..d19869d 100644 --- a/src/rpcblockchain.cpp +++ b/src/rpcblockchain.cpp @@ -13,7 +13,7 @@ using namespace json_spirit; using namespace std; -extern void TxToJSON(const CTransaction& tx, const uint256 hashBlock, json_spirit::Object& entry); +extern void TxToJSON(const CTransaction& tx, const uint256& hashBlock, json_spirit::Object& entry); extern enum Checkpoints::CPMode CheckpointsMode; double GetDifficulty(const CBlockIndex* blockindex) @@ -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));