Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
eaed1f2cac
  1. 2
      iguana/iguana_ramchain.c
  2. 4
      iguana/iguana_unspents.c

2
iguana/iguana_ramchain.c

@ -478,7 +478,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 [%d] s%u\n",txidind,hdrsi,spendind);
printf("found spend d9151... txidind.%u u%u [%d] s%u\n",txidind,unspentind,hdrsi,spendind);
s->sequenceid = sequence;
s->external = external, s->spendtxidind = txidind,
s->prevout = prev_vout;

4
iguana/iguana_unspents.c

@ -1270,7 +1270,9 @@ int32_t iguana_balancegen(struct iguana_info *coin,int32_t incremental,struct ig
u = &spentU[spent_unspentind];
if ( (spent_pkind= u->pkind) != 0 && spent_pkind < rdata->numpkinds )
spent_value = u->value;
if ( spent_hdrsi == 202 && spent_unspentind == 2998402 )
//found spend d9151... txidind.1083097 [202] s3163977
//found spend d9151... txidind.1083097 [202] s4033628
if ( (spent_hdrsi == 202 && s->spendtxidind == 1083097) || spendind == 3163977 || spendind == 4033628 )
printf("internal spend.%d txidind.%d 1st.%d prevout.%d\n",spendind,txidind,T[txidind].firstvout,s->prevout);
}
else //if ( i > 0 || j > 0 || k > 0 )

Loading…
Cancel
Save