From c0d01b7da469e626333d344e33941ef06bedb6d3 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 12 Apr 2018 00:40:23 +0300 Subject: [PATCH] Test --- src/komodo.h | 5 +++-- src/komodo_structs.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/komodo.h b/src/komodo.h index 527402020..e2767a04b 100644 --- a/src/komodo.h +++ b/src/komodo.h @@ -671,9 +671,10 @@ int32_t komodo_voutupdate(int32_t *isratificationp,int32_t notaryid,uint8_t *scr komodo_rwccdata(ASSETCHAINS_SYMBOL,1,&ccdata,&MoMoMdata); //printf("[%s] matched.%d VALID (%s) MoM.%s [%d]\n",ASSETCHAINS_SYMBOL,matched,ccdata.symbol,MoM.ToString().c_str(),MoMdepth); } - if ( ccdata.pairs != 0 ) - free(ccdata.pairs); + if ( MoMoMdata.pairs != 0 ) + free(MoMoMdata.pairs); memset(&ccdata,0,sizeof(ccdata)); + memset(&MoMoMdata,0,sizeof(MoMoMdata)); } else if ( ASSETCHAINS_SYMBOL[0] == 0 && matched != 0 && notarized != 0 && validated != 0 ) komodo_rwccdata((char *)"KMD",1,&ccdata,0); diff --git a/src/komodo_structs.h b/src/komodo_structs.h index 8784ef26f..6527bebb7 100644 --- a/src/komodo_structs.h +++ b/src/komodo_structs.h @@ -100,7 +100,7 @@ struct komodo_ccdatapair { int32_t notarization_height; uint32_t MoMoMoffset; }; struct komodo_ccdataMoMoM { uint256 MoMoM; - int32_t MoMoMstart,MoMoMend,MoMoMdepth,numpairs; + int32_t MoMoMstart,MoMoMend,MoMoMdepth,numpairs,len; struct komodo_ccdatapair *pairs; };