Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
0ce23100ab
  1. 3
      iguana/iguana_ramchain.c

3
iguana/iguana_ramchain.c

@ -863,12 +863,15 @@ uint32_t iguana_ramchain_addunspent(struct iguana_info *coin,RAMCHAIN_FUNC,uint6
} //else printf("RO spendscript match.%d\n",scriptlen); } //else printf("RO spendscript match.%d\n",scriptlen);
} }
if ( type == IGUANA_SCRIPT_DATA || type == IGUANA_SCRIPT_OPRETURN || type == IGUANA_SCRIPT_STRANGE ) if ( type == IGUANA_SCRIPT_DATA || type == IGUANA_SCRIPT_OPRETURN || type == IGUANA_SCRIPT_STRANGE )
{
if ( script != 0 && scriptlen > 0 )
{ {
u->scriptoffset = origoffset; u->scriptoffset = origoffset;
origoffset += iguana_rwvarint32(1,&Kspace[origoffset],(void *)&scriptlen); origoffset += iguana_rwvarint32(1,&Kspace[origoffset],(void *)&scriptlen);
memcpy(&Kspace[origoffset],script,scriptlen); memcpy(&Kspace[origoffset],script,scriptlen);
ramchain->H.scriptoffset = origoffset + scriptlen; ramchain->H.scriptoffset = origoffset + scriptlen;
} }
}
else if ( type == IGUANA_SCRIPT_76AC && pubkeyoffset != 0 && P[pkind].pubkeyoffset == 0 ) else if ( type == IGUANA_SCRIPT_76AC && pubkeyoffset != 0 && P[pkind].pubkeyoffset == 0 )
P[pkind].pubkeyoffset = pubkeyoffset; P[pkind].pubkeyoffset = pubkeyoffset;
u->type = type; u->type = type;

Loading…
Cancel
Save