From 8b8c54db0734b90c68e0b6e6bbfe9662245a9a7d Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 24 Mar 2018 14:07:49 +0200 Subject: [PATCH] Test --- src/rpcblockchain.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/rpcblockchain.cpp b/src/rpcblockchain.cpp index 9a6453cb3..8a9b796eb 100644 --- a/src/rpcblockchain.cpp +++ b/src/rpcblockchain.cpp @@ -582,7 +582,7 @@ UniValue kvsearch(const UniValue& params, bool fHelp) UniValue height_MoM(const UniValue& params, bool fHelp) { - int32_t height,depth,notarized_height; uint256 MoM; uint32_t timestamp = 0; UniValue ret(UniValue::VOBJ); UniValue a(UniValue::VARR); + int32_t height,depth,notarized_height; uint256 MoM,kmdtxid; uint32_t timestamp = 0; UniValue ret(UniValue::VOBJ); UniValue a(UniValue::VARR); if ( fHelp || params.size() != 1 ) throw runtime_error("height_MoM needs height\n"); LOCK(cs_main); @@ -597,7 +597,7 @@ UniValue height_MoM(const UniValue& params, bool fHelp) height = chainActive.Tip()->nHeight; } fprintf(stderr,"height_MoM height.%d\n",height); - depth = komodo_MoMdata(¬arized_height,&MoM,height); + depth = komodo_MoMdata(¬arized_height,&MoM,&kmdtxid,height); ret.push_back(Pair("coin",(char *)(ASSETCHAINS_SYMBOL[0] == 0 ? "KMD" : ASSETCHAINS_SYMBOL))); ret.push_back(Pair("height",height)); ret.push_back(Pair("timestamp",(uint64_t)timestamp)); @@ -606,6 +606,7 @@ UniValue height_MoM(const UniValue& params, bool fHelp) ret.push_back(Pair("depth",depth)); ret.push_back(Pair("notarized_height",notarized_height)); ret.push_back(Pair("MoM",MoM.GetHex())); + ret.push_back(Pair("kmdtxid",kmdtxid.GetHex())); } else ret.push_back(Pair("error",(char *)"no MoM for height")); return ret; -- 2.42.0