diff --git a/src/komodo_ccdata.h b/src/komodo_ccdata.h index 8572e8aa5..30bd858a0 100644 --- a/src/komodo_ccdata.h +++ b/src/komodo_ccdata.h @@ -58,7 +58,7 @@ struct komodo_ccdata_entry *komodo_allMoMs(int32_t *nump,uint256 *MoMoMp,int32_t } allMoMs[num].MoM = ccdata->MoMdata.MoM; allMoMs[num].notarized_height = ccdata->MoMdata.notarized_height; - allMoMs[num].height = ccdata->MoMdata.height; + allMoMs[num].kmdheight = ccdata->MoMdata.height; allMoMs[num].txi = ccdata->MoMdata.txi; strcpy(allMoMs[num].symbol,ccdata->symbol); num++; diff --git a/src/komodo_structs.h b/src/komodo_structs.h index 634edf74c..383d2fa9c 100644 --- a/src/komodo_structs.h +++ b/src/komodo_structs.h @@ -92,7 +92,7 @@ struct notarized_checkpoint struct komodo_ccdataMoM { uint256 MoM; - int32_t MoMdepth,notarized_height,height,txi; + int32_t MoMdepth,notarized_height,kmdheight,txi; }; struct komodo_ccdata_entry { uint256 MoM; int32_t notarized_height,height,txi; char symbol[65]; }; diff --git a/src/rpcblockchain.cpp b/src/rpcblockchain.cpp index 816e32096..d49068295 100644 --- a/src/rpcblockchain.cpp +++ b/src/rpcblockchain.cpp @@ -555,7 +555,7 @@ int32_t komodo_minerids(uint8_t *minerids,int32_t height,int32_t width); int32_t komodo_kvsearch(uint256 *refpubkeyp,int32_t current_height,uint32_t *flagsp,int32_t *heightp,uint8_t value[IGUANA_MAXSCRIPTSIZE],uint8_t *key,int32_t keylen); int32_t komodo_MoM(int32_t *notarized_htp,uint256 *MoMp,uint256 *kmdtxidp,int32_t nHeight,uint256 *MoMoMp,int32_t *MoMoMoffsetp,int32_t *MoMoMdepthp,int32_t *kmdstartip,int32_t *kmdendip); int32_t komodo_MoMoMdata(char *hexstr,int32_t hexsize,struct komodo_ccdataMoMoM *mdata,char *symbol,int32_t kmdheight,int32_t notarized_height); -struct komodo_ccdata_entry *komodo_allMoMs(int32_t *nump,int32_t kmdstarti,int32_t kmdendi); +struct komodo_ccdata_entry *komodo_allMoMs(int32_t *nump,uint256 *MoMoMp,int32_t kmdstarti,int32_t kmdendi); UniValue kvsearch(const UniValue& params, bool fHelp) {