Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
1ed512ea40
  1. 1
      iguana/iguana_spendvectors.c
  2. 2
      iguana/iguana_tx.c

1
iguana/iguana_spendvectors.c

@ -1138,6 +1138,7 @@ int32_t iguana_bundlevalidate(struct supernet_info *myinfo,struct iguana_info *c
iguana_volatilesmap(coin,&bp->ramchain);
for (i=0; i<bp->n; i++)
{
char str[65]; printf("validate %s.[%d:%d] %s\n",coin->symbol,bp->hdrsi,i,bits256_str(str,bp->hashes[i]));
if ( (len= iguana_peerblockrequest(myinfo,coin,blockspace,max,0,bp->hashes[i],1)) < 0 )
{
errs++;

2
iguana/iguana_tx.c

@ -131,7 +131,7 @@ int32_t iguana_voutset(struct iguana_info *coin,uint8_t *scriptspace,char *asmst
u = &U[unspentind];
if ( u->vout != i || u->hdrsi != height / coin->chain->bundlesize ) //u->txidind != tx->txidind ||
{
printf("%s.[%d].%d iguana_voutset: vout mismatch t%d u%u || %d vs %d\n",coin->symbol,height/coin->chain->bundlesize,u->hdrsi,u->txidind,unspentind,u->vout,i);
printf("%s.[%d].%d iguana_voutset: vout mismatch t%d u%u || %d vs %d, type.%d scriptpos.%d scriptlen.%d\n",coin->symbol,height/coin->chain->bundlesize,u->hdrsi,u->txidind,unspentind,u->vout,i,u->type,u->scriptpos,u->scriptlen);
return(-1);
}
vout->value = u->value;

Loading…
Cancel
Save