@ -150,7 +150,7 @@ struct iguana_pkhash *iguana_pkhashfind(struct iguana_info *coin,struct iguana_r
* ramchainp = ramchain ;
* ramchainp = ramchain ;
* depositsp = ACCTS [ pkind ] . total ;
* depositsp = ACCTS [ pkind ] . total ;
* lastunspentindp = ACCTS [ pkind ] . lastunspentind ;
* lastunspentindp = ACCTS [ pkind ] . lastunspentind ;
//printf(" [%d] return pkind.%u of %u P.%p %.8f last.%u ACCTS.%p %p\n",i,pkind,numpkinds,P,dstr(*depositsp),*lastunspentindp,ACCTS,ramchain->A);
printf ( " [%d] return pkind.%u of %u P.%p %.8f last.%u ACCTS.%p %p \n " , i , pkind , numpkinds , P , dstr ( * depositsp ) , * lastunspentindp , ACCTS , ramchain - > A ) ;
if ( P ! = 0 )
if ( P ! = 0 )
* p = P [ pkind ] ;
* p = P [ pkind ] ;
return ( p ) ;
return ( p ) ;
@ -196,7 +196,7 @@ int64_t iguana_pkhashbalance(struct supernet_info *myinfo,struct iguana_info *co
while ( unspentind > 0 )
while ( unspentind > 0 )
{
{
uheight = iguana_uheight ( coin , ramchain - > height , T , rdata - > numtxids , & U [ unspentind ] ) ;
uheight = iguana_uheight ( coin , ramchain - > height , T , rdata - > numtxids , & U [ unspentind ] ) ;
if ( uheight < lastheight )
if ( lastheight < = 0 | | uheight < lastheight )
{
{
deposits + = U [ unspentind ] . value ;
deposits + = U [ unspentind ] . value ;
if ( lastheight < 0 | | iguana_spentflag ( coin , & RTspend , & spentheight , ramchain , hdrsi , unspentind , lastheight , minconf , maxconf , U [ unspentind ] . value ) = = 0 )
if ( lastheight < 0 | | iguana_spentflag ( coin , & RTspend , & spentheight , ramchain , hdrsi , unspentind , lastheight , minconf , maxconf , U [ unspentind ] . value ) = = 0 )
@ -270,7 +270,7 @@ int32_t iguana_pkhasharray(struct supernet_info *myinfo,struct iguana_info *coin
}
}
else
else
{
{
//printf(" pkhash balance.[%d] from m.%d check %.8f vs %.8f spent %.8f [%.8f]\n",i,m,dstr(netbalance),dstr(deposits),dstr(spent),dstr(deposits)-dstr(spent));
printf ( " pkhash balance.[%d] from m.%d check %.8f vs %.8f spent %.8f [%.8f] \n " , i , m , dstr ( netbalance ) , dstr ( deposits ) , dstr ( spent ) , dstr ( deposits ) - dstr ( spent ) ) ;
total + = netbalance ;
total + = netbalance ;
n + + ;
n + + ;
}
}