This commit is contained in:
jl777
2018-04-13 19:16:30 +03:00
parent 9557a59301
commit 0b5f32ccc2

View File

@@ -631,9 +631,7 @@ UniValue height_MoM(const UniValue& params, bool fHelp)
UniValue txMoMproof(const UniValue& params, bool fHelp)
{
uint256 hash, notarisationHash, MoM;
int32_t notarisedHeight, depth;
CBlockIndex* blockIndex;
uint256 hash, notarisationHash, MoM,MoMoM; int32_t notarisedHeight, depth; CBlockIndex* blockIndex;
std::vector<uint256> branch;
int nIndex;
@@ -651,7 +649,7 @@ UniValue txMoMproof(const UniValue& params, bool fHelp)
blockIndex = mapBlockIndex[blockHash];
depth = komodo_MoM(&notarisedHeight, &MoM, &notarisationHash, blockIndex->nHeight);
depth = komodo_MoM(&notarisedHeight, &MoM, &notarisationHash, blockIndex->nHeight,&MoMoM,&MoMoMoffset,&MoMoMdepth,&kmdstarti,&kmdendi);
if (!depth)
throw runtime_error("notarisation not found");