]> Git Repo - VerusCoin.git/blobdiff - src/komodo_notary.h
Test
[VerusCoin.git] / src / komodo_notary.h
index 32a9673f845b621ae2c116f74962c51af5c338db..9b9515792e085d2a8d37fca8d97719988680ece6 100644 (file)
@@ -398,7 +398,7 @@ int32_t komodo_notarized_height(uint256 *hashp,uint256 *txidp)
     }
 }
 
-int32_t komodo_MoMdata(int32_t *notarized_htp,uint256 *MoMp,uint256 *kmdtxidp,int32_t nHeight)
+int32_t komodo_MoMdata(int32_t *notarized_htp,uint256 *MoMp,uint256 *kmdtxidp,int32_t height)
 {
     int32_t i; char symbol[KOMODO_ASSETCHAIN_MAXLEN],dest[KOMODO_ASSETCHAIN_MAXLEN]; struct komodo_state *sp; struct notarized_checkpoint *np = 0;
     np = 0;
@@ -407,9 +407,8 @@ int32_t komodo_MoMdata(int32_t *notarized_htp,uint256 *MoMp,uint256 *kmdtxidp,in
         for (i=sp->NUM_NPOINTS-1; i>=0; i--)
         {
             np = &sp->NPOINTS[i];
-            if ( np->MoMdepth > 0 && nHeight > np->nHeight-np->MoMdepth && nHeight <= np->nHeight )
+            if ( np->MoMdepth > 0 && height > np->notarized_height-np->MoMdepth && height <= np->notarized_height )
             {
-                //printf("komodo_MoMdata.(%s -> %s) %d i.%d np->ht %d MoMdepth.%d\n",symbol,dest,nHeight,i,np->nHeight,np->MoMdepth);
                 *notarized_htp = np->notarized_height;
                 *MoMp = np->MoM;
                 *kmdtxidp = np->notarized_desttxid;
This page took 0.023296 seconds and 4 git commands to generate.