Browse Source

test

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

11
iguana/iguana_ramchain.c

@ -864,10 +864,13 @@ uint32_t iguana_ramchain_addunspent(struct iguana_info *coin,RAMCHAIN_FUNC,uint6
} }
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 )
{ {
u->scriptoffset = origoffset; if ( script != 0 && scriptlen > 0 )
origoffset += iguana_rwvarint32(1,&Kspace[origoffset],(void *)&scriptlen); {
memcpy(&Kspace[origoffset],script,scriptlen); u->scriptoffset = origoffset;
ramchain->H.scriptoffset = origoffset + scriptlen; origoffset += iguana_rwvarint32(1,&Kspace[origoffset],(void *)&scriptlen);
memcpy(&Kspace[origoffset],script,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;

Loading…
Cancel
Save