Test
This commit is contained in:
@@ -608,7 +608,7 @@ int32_t komodo_voutupdate(int32_t *isratificationp,int32_t notaryid,uint8_t *scr
|
|||||||
ccdata.notarized_height = *notarizedheightp;
|
ccdata.notarized_height = *notarizedheightp;
|
||||||
ccdata.MoM = sp->MoM;
|
ccdata.MoM = sp->MoM;
|
||||||
ccdata.height = height;
|
ccdata.height = height;
|
||||||
ccdata.txi = txi;
|
ccdata.txi = i;
|
||||||
if ( len+36 <= opretlen )
|
if ( len+36 <= opretlen )
|
||||||
{
|
{
|
||||||
len += iguana_rwbignum(0,&scriptbuf[len],32,(uint8_t *)&sp->MoM);
|
len += iguana_rwbignum(0,&scriptbuf[len],32,(uint8_t *)&sp->MoM);
|
||||||
@@ -628,7 +628,7 @@ int32_t komodo_voutupdate(int32_t *isratificationp,int32_t notaryid,uint8_t *scr
|
|||||||
ccdata.len += sizeof(ccdata.MoMoM) + sizeof(ccdata.MoMoMdepth) + sizeof(ccdata.numpairs);
|
ccdata.len += sizeof(ccdata.MoMoM) + sizeof(ccdata.MoMoMdepth) + sizeof(ccdata.numpairs);
|
||||||
if ( len+ccdata.numpairs*8 == opretlen )
|
if ( len+ccdata.numpairs*8 == opretlen )
|
||||||
{
|
{
|
||||||
ccdata.pairs = calloc(ccdata.numpairs,sizeof(*cc.pairs));
|
ccdata.pairs = calloc(ccdata.numpairs,sizeof(*ccdata.pairs));
|
||||||
for (k=0; k<ccdata.numpairs; k++)
|
for (k=0; k<ccdata.numpairs; k++)
|
||||||
{
|
{
|
||||||
len += iguana_rwnum(0,&scriptbuf[len],sizeof(int32_t),(uint8_t *)&ccdata.pairs[k].notarization_height);
|
len += iguana_rwnum(0,&scriptbuf[len],sizeof(int32_t),(uint8_t *)&ccdata.pairs[k].notarization_height);
|
||||||
|
|||||||
Reference in New Issue
Block a user