Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
ca8a8583f3
  1. 2
      iguana/iguana777.c
  2. 2
      iguana/iguana_spendvectors.c

2
iguana/iguana777.c

@ -421,7 +421,7 @@ void iguana_update_balances(struct iguana_info *coin)
max--;
if ( iguana_balancefinished(coin) < max && iguana_spendvectorsaves(coin) == 0 )
{
if ( 1 || coin->origbalanceswritten <= 1 )
if ( coin->origbalanceswritten <= 1 )
hdrsi = 0;
else hdrsi = coin->origbalanceswritten;
for (i=0; i<max; i++)

2
iguana/iguana_spendvectors.c

@ -449,7 +449,7 @@ int32_t iguana_balancegen(struct iguana_info *coin,int32_t incremental,struct ig
struct iguana_spendvector *spend; struct iguana_unspent *spentU,*u; struct iguana_spendvector *Xspendinds;
struct iguana_txid *T; struct iguana_blockRO *B; struct iguana_bundle *spentbp;
int32_t spent_hdrsi,spendind,n,numXspends,errs=0,emit=0; struct iguana_spend *S,*s;
ramchain = (bp == coin->current) ? &coin->RTramchain : &bp->ramchain;
ramchain = &bp->ramchain;//(bp == coin->current) ? &coin->RTramchain : &bp->ramchain;
if ( (rdata= ramchain->H.data) == 0 || (n= rdata->numspends) < 1 )
return(-1);
S = (void *)(long)((long)rdata + rdata->Soffset);

Loading…
Cancel
Save