Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
4832967585
  1. 8
      iguana/iguana_unspents.c
  2. 6
      iguana/main.c

8
iguana/iguana_unspents.c

@ -868,7 +868,7 @@ int32_t iguana_spendvectors(struct iguana_info *coin,struct iguana_bundle *bp,st
if ( s->external != 0 && s->prevout >= 0 )
{
double startmillis = OS_milliseconds(); static double totalmillis; static int32_t num;
if ( (spentbp= iguana_externalspent(coin,&prevhash,&spent_unspentind,bp,ramchain,bp->hdrsi,s,convertflag != 0 ? 2 : -1)) != 0 && spentbp->ramchain.H.data != 0 )
if ( (spentbp= iguana_externalspent(coin,&prevhash,&spent_unspentind,bp,ramchain,bp->hdrsi,s,2)) != 0 && spentbp->ramchain.H.data != 0 )
{
totalmillis += (OS_milliseconds() - startmillis);
if ( (++num % 1000000) == 0 )
@ -1520,7 +1520,11 @@ int32_t iguana_realtime_update(struct iguana_info *coin)
printf("RTutxo error -> RTramchainfree\n");
iguana_RTramchainfree(coin);
return(-1);
} else printf("spendvectors calculated to %d\n",coin->RTheight);
}
else
{
printf("spendvectors calculated to %d\n",coin->RTheight);
}
while ( block != 0 )
{
if ( bits256_cmp(iguana_blockhash(coin,coin->RTheight-n-1),block->RO.hash2) != 0 )

6
iguana/main.c

@ -391,9 +391,9 @@ void mainloop(struct supernet_info *myinfo)
iguana_bundleQ(coin,bp,1000);
}
}
}
}
}
} else printf("skip A j.%d vs n.%d\n",j,n);
} else printf("skip j.%d vs n.%d\n",j,n);
} else printf("skip hdrsi.%d vs %d\n",coin->current->hdrsi,coin->longestchain/coin->chain->bundlesize);
n = queue_size(&balancesQ);
for (iter=0; iter<n; iter++)
{

Loading…
Cancel
Save