@ -966,7 +966,7 @@ uint32_t iguana_ramchain_addspend256(struct iguana_info *coin,RAMCHAIN_FUNC,bits
{
char str [ 65 ] , str2 [ 65 ] ; printf ( " check (%d %d) (%d %d) addspend.%d v %d RO value mismatch sequenceid.%x seq.%x prev_vout(%d vs %d) %s vs %s \n " , scriptfpos , s - > scriptfpos , vinscriptlen , s - > vinscriptlen , spendind , s - > spendind , s - > sequenceid , sequence , s - > prevout , prev_vout , bits256_str ( str , s - > prevhash2 ) , bits256_str ( str2 , prev_hash ) ) ;
//printf("check addspend.%d vs %d RO value mismatch (%d %d:%d) vs (%d %d:%d)\n",spendind,s->spendind,s->prevout,s->hdrsi,s->bundlei,prev_vout,hdrsi,bundlei);
exit ( - 1 ) ;
//exit(-1);
return ( 0 ) ;
}
//printf(" READ.%p spendind.%d vs %d prevout.%d hdrsi.%d:%d\n",s,spendind,s->spendind,s->prevout,s->hdrsi,s->bundlei);
@ -1819,7 +1819,9 @@ int32_t iguana_ramchain_iterate(struct iguana_info *coin,struct iguana_ramchain
value = U [ ramchain - > H . unspentind ] . value ;
rmd160 = U [ ramchain - > H . unspentind ] . rmd160 ;
type = U [ ramchain - > H . unspentind ] . type & 0xf ;
scriptdata = iguana_scriptptr ( coin , & scriptlen , _script , U [ ramchain - > H . unspentind ] . scriptfpos , U [ ramchain - > H . unspentind ] . scriptptr , U [ ramchain - > H . unspentind ] . scriptlen , sizeof ( U [ ramchain - > H . unspentind ] . scriptptr ) , 0 ) ;
scriptdata = U [ ramchain - > H . unspentind ] . scriptptr ;
scriptlen = U [ ramchain - > H . unspentind ] . scriptlen ;
//scriptdata = iguana_scriptptr(coin,&scriptlen,_script,U[ramchain->H.unspentind].scriptfpos,U[ramchain->H.unspentind].scriptptr,U[ramchain->H.unspentind].scriptlen,sizeof(U[ramchain->H.unspentind].scriptptr),0);
//int32_t i; for (i=0; i<scriptlen; i++)
// printf("%02x",scriptdata[i]);
//fprintf(stderr," raw unspent script type.%d U%d\n",type,ramchain->H.unspentind);
@ -1882,7 +1884,9 @@ int32_t iguana_ramchain_iterate(struct iguana_info *coin,struct iguana_ramchain
sequenceid = S [ ramchain - > H . spendind ] . sequenceid ;
prevhash = S [ ramchain - > H . spendind ] . prevhash2 ;
prevout = S [ ramchain - > H . spendind ] . prevout ;
scriptdata = iguana_scriptptr ( coin , & scriptlen , _script , S [ ramchain - > H . spendind ] . scriptfpos , S [ ramchain - > H . spendind ] . vinscriptptr , S [ ramchain - > H . spendind ] . vinscriptlen , sizeof ( S [ ramchain - > H . spendind ] . vinscriptptr ) , 1 ) ;
scriptdata = S [ ramchain - > H . spendind ] . vinscriptptr ;
scriptlen = S [ ramchain - > H . spendind ] . vinscriptlen ;
//scriptdata = iguana_scriptptr(coin,&scriptlen,_script,S[ramchain->H.spendind].scriptfpos,S[ramchain->H.spendind].vinscriptptr,S[ramchain->H.spendind].vinscriptlen,sizeof(S[ramchain->H.spendind].vinscriptptr),1);
//int32_t i; for (i=0; i<scriptlen; i++)
// printf("%02x",scriptdata[i]);
//printf(" spendind.%d vinscript\n",ramchain->H.spendind);