Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
dddd1f7db2
  1. 6
      iguana/iguana_spendvectors.c
  2. 6
      iguana/iguana_unspents.c

6
iguana/iguana_spendvectors.c

@ -743,9 +743,9 @@ void iguana_initfinal(struct iguana_info *coin,bits256 lastbundle)
} }
} }
printf("i.%d bundlescount.%d\n",i,coin->bundlescount); printf("i.%d bundlescount.%d\n",i,coin->bundlescount);
//if ( coin->balanceswritten > 1 ) if ( coin->balanceswritten > 1 )
coin->balanceswritten = iguana_volatilesinit(coin); coin->balanceswritten = iguana_volatilesinit(coin);
//if ( coin->balanceswritten > 1 ) if ( coin->balanceswritten > 1 )
{ {
for (i=0; i<coin->balanceswritten; i++) for (i=0; i<coin->balanceswritten; i++)
{ {
@ -756,7 +756,7 @@ void iguana_initfinal(struct iguana_info *coin,bits256 lastbundle)
printf("i.%d balanceswritten.%d\n",i,coin->balanceswritten); printf("i.%d balanceswritten.%d\n",i,coin->balanceswritten);
if ( coin->balanceswritten < coin->bundlescount ) if ( coin->balanceswritten < coin->bundlescount )
{ {
for (i=coin->balanceswritten; i<coin->bundlescount; i++) for (i=0*coin->balanceswritten; i<coin->bundlescount; i++)
{ {
if ( (bp= coin->bundles[i]) != 0 && bp->queued == 0 ) if ( (bp= coin->bundles[i]) != 0 && bp->queued == 0 )
{ {

6
iguana/iguana_unspents.c

@ -394,8 +394,10 @@ int64_t iguana_pkhashbalance(struct supernet_info *myinfo,struct iguana_info *co
} }
if ( ramchain->Uextras == 0 || (rdata= ramchain->H.data) == 0 ) if ( ramchain->Uextras == 0 || (rdata= ramchain->H.data) == 0 )
{ {
if ( ramchain->height < (coin->bundlescount-2)*coin->chain->bundlesize ) if ( ramchain->height < (coin->bundlescount-1)*coin->chain->bundlesize )
printf("iguana_pkhashbalance.[%d] %d: unexpected null spents.%p or rdata.%p\n",ramchain->height,(coin->bundlescount-2)*coin->chain->bundlesize,ramchain->Uextras,rdata); {
//printf("iguana_pkhashbalance.[%d] %d: unexpected null spents.%p or rdata.%p\n",ramchain->height,(coin->bundlescount-1)*coin->chain->bundlesize,ramchain->Uextras,rdata);
}
else iguana_volatilesalloc(coin,ramchain,0); else iguana_volatilesalloc(coin,ramchain,0);
return(0); return(0);
} }

Loading…
Cancel
Save