|
|
@ -202,6 +202,11 @@ uint32_t iguana_ramchain_addtxid(struct iguana_info *coin,RAMCHAIN_FUNC,bits256 |
|
|
|
printf("iguana_ramchain_addtxid error adding txidind\n"); |
|
|
|
return(0); |
|
|
|
} |
|
|
|
if ( ptr->hh.itemind != txidind ) |
|
|
|
{ |
|
|
|
printf("iguana_ramchain_addtxid error adding txidind.%u vs %u\n",txidind,ptr->hh.itemind); |
|
|
|
return(0); |
|
|
|
} |
|
|
|
} |
|
|
|
return(txidind); |
|
|
|
} |
|
|
@ -408,7 +413,8 @@ uint32_t iguana_ramchain_addspend(struct iguana_info *coin,RAMCHAIN_FUNC,bits256 |
|
|
|
spendind = ramchain->H.spendind++; |
|
|
|
s = &Sx[spendind]; |
|
|
|
pkind = unspentind = 0; |
|
|
|
if ( prev_vout >= 0 && (ptr= iguana_hashfind(ramchain,'T',prev_hash.bytes)) == 0 ) |
|
|
|
ptr = iguana_hashfind(ramchain,'T',prev_hash.bytes); |
|
|
|
if ( prev_vout >= 0 && ptr == 0 ) |
|
|
|
{ |
|
|
|
external = 1; |
|
|
|
txidind = ramchain->externalind++; |
|
|
@ -478,7 +484,7 @@ uint32_t iguana_ramchain_addspend(struct iguana_info *coin,RAMCHAIN_FUNC,bits256 |
|
|
|
// printf("%02x",vinscript[i]);
|
|
|
|
//printf(" SAVE vinscript len.%d\n",vinscriptlen);
|
|
|
|
if ( bits256_cmp(prev_hash,bits256_conv("d9151f0471a3982778c8acc623becc24bc35483bdecb07611d036209da541cde")) == 0 ) |
|
|
|
printf("found spend d9151... txidind.%u u%u [%d] s%u\n",txidind,unspentind,hdrsi,spendind); |
|
|
|
printf("found spend d9151... txidind.%u (first.%u + vout.%d) u%u [%d] s%u\n",txidind,T[txidind].firstvout,prev_vout,unspentind,hdrsi,spendind); |
|
|
|
s->sequenceid = sequence; |
|
|
|
s->external = external, s->spendtxidind = txidind, |
|
|
|
s->prevout = prev_vout; |
|
|
|