This commit is contained in:
jl777
2016-11-19 16:27:55 -03:00
parent 03ef7187bc
commit 2e98c3a27a

View File

@@ -169,7 +169,7 @@ void komodo_notarized_update(struct komodo_state *sp,int32_t nHeight,int32_t not
return;
}
sp->NPOINTS = (struct notarized_checkpoint *)realloc(sp->NPOINTS,(sp->NUM_NPOINTS+1) * sizeof(*sp->NPOINTS));
np = &sp->NPOINTS[NUM_NPOINTS++];
np = &sp->NPOINTS[sp->NUM_NPOINTS++];
memset(np,0,sizeof(*np));
np->nHeight = nHeight;
sp->NOTARIZED_HEIGHT = np->notarized_height = notarized_height;