Test
This commit is contained in:
@@ -631,9 +631,7 @@ UniValue height_MoM(const UniValue& params, bool fHelp)
|
|||||||
|
|
||||||
UniValue txMoMproof(const UniValue& params, bool fHelp)
|
UniValue txMoMproof(const UniValue& params, bool fHelp)
|
||||||
{
|
{
|
||||||
uint256 hash, notarisationHash, MoM;
|
uint256 hash, notarisationHash, MoM,MoMoM; int32_t notarisedHeight, depth; CBlockIndex* blockIndex;
|
||||||
int32_t notarisedHeight, depth;
|
|
||||||
CBlockIndex* blockIndex;
|
|
||||||
std::vector<uint256> branch;
|
std::vector<uint256> branch;
|
||||||
int nIndex;
|
int nIndex;
|
||||||
|
|
||||||
@@ -651,7 +649,7 @@ UniValue txMoMproof(const UniValue& params, bool fHelp)
|
|||||||
|
|
||||||
blockIndex = mapBlockIndex[blockHash];
|
blockIndex = mapBlockIndex[blockHash];
|
||||||
|
|
||||||
depth = komodo_MoM(¬arisedHeight, &MoM, ¬arisationHash, blockIndex->nHeight);
|
depth = komodo_MoM(¬arisedHeight, &MoM, ¬arisationHash, blockIndex->nHeight,&MoMoM,&MoMoMoffset,&MoMoMdepth,&kmdstarti,&kmdendi);
|
||||||
|
|
||||||
if (!depth)
|
if (!depth)
|
||||||
throw runtime_error("notarisation not found");
|
throw runtime_error("notarisation not found");
|
||||||
|
|||||||
Reference in New Issue
Block a user