Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
09b4efdaab
  1. 1
      iguana/iguana777.c
  2. 4
      iguana/iguana_unspents.c

1
iguana/iguana777.c

@ -434,6 +434,7 @@ void iguana_update_balances(struct iguana_info *coin)
OS_removefile(fname,0);
iguana_volatilesalloc(coin,&bp->ramchain,0);//i < hdrsi);
}
sleep(3);
for (hdrsi=0; hdrsi<max; hdrsi++)
{
if ( (bp= coin->bundles[hdrsi]) != 0 )

4
iguana/iguana_unspents.c

@ -431,7 +431,7 @@ int64_t iguana_pkhashbalance(struct supernet_info *myinfo,struct iguana_info *co
}
if ( p->pkind != U[unspentind].pkind )
printf("warning: [%d] p->pkind.%u vs U->pkind.%u for u%d\n",hdrsi,p->pkind,U[unspentind].pkind,unspentind);
} else printf("skip uheight.%d lastheight.%d\n",uheight,lastheight);
} // else printf("skip uheight.%d lastheight.%d\n",uheight,lastheight);
pkind = p->pkind;
unspentind = U[unspentind].prevunspentind;
}
@ -1166,7 +1166,7 @@ int64_t iguana_utxoaddr_gen(struct supernet_info *myinfo,struct iguana_info *coi
sprintf(fname2,"%s/%s/utxoaddrs.%d",GLOBAL_DBDIR,coin->symbol,height), OS_portable_path(fname2);
if ( iguana_utxoaddr_map(coin,fname2) != 0 )
{
errs = iguana_utxoaddr_validate(myinfo,coin,height);
errs = 0;//iguana_utxoaddr_validate(myinfo,coin,height);
printf("HIST BALANCE %.8f errs %d\n",dstr(coin->histbalance),errs);
if ( coin->histbalance > 0 )
return(coin->histbalance);

Loading…
Cancel
Save