Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
f7e56db587
  1. 2
      iguana/iguana_realtime.c
  2. 2
      iguana/iguana_spendvectors.c
  3. 2
      iguana/iguana_volatiles.c

2
iguana/iguana_realtime.c

@ -381,7 +381,7 @@ int32_t iguana_realtime_update(struct supernet_info *myinfo,struct iguana_info *
}
}
n = 0;
if ( coin->RTdatabad == 0 && dest != 0 && flag != 0 && coin->RTheight >= coin->longestchain-offset )
if ( coin->RTdatabad == 0 && dest != 0 && flag != 0 && coin->RTheight >= coin->blocks.hwmchain.height-offset )
{
printf("ramchainiterate.[%d] ave %.2f micros, total %.2f seconds starti.%d num.%d\n",num0,(totalmillis0*1000.)/num0,totalmillis0/1000.,coin->RTstarti,coin->RTheight%bp->n);
if ( (n= iguana_walkchain(coin,1)) == coin->RTheight-1+offset )

2
iguana/iguana_spendvectors.c

@ -509,7 +509,7 @@ int32_t iguana_balancegen(struct iguana_info *coin,int32_t incremental,struct ig
{
utxoaddr->RTcredits += u->value;
coin->RTcredits += u->value;
printf("[%d] u%u += %.8f\n",bp->hdrsi,u->pkind,dstr(u->value));
//printf("[%d] u%u += %.8f\n",bp->hdrsi,u->pkind,dstr(u->value));
} else printf("cant find utxoaddr\n");
}
} else unspentind += T[txidind].numvouts;

2
iguana/iguana_volatiles.c

@ -83,7 +83,7 @@ int32_t iguana_utxoupdate(struct iguana_info *coin,int16_t spent_hdrsi,uint32_t
{
utxoaddr->RTdebits += spent_value;
coin->RTdebits += spent_value;
printf("from.%d [%d] u%u -= %.8f\n",fromheight,spent_hdrsi,spent_pkind,dstr(spent_value));
//printf("from.%d [%d] u%u -= %.8f\n",fromheight,spent_hdrsi,spent_pkind,dstr(spent_value));
}
return(0);
}

Loading…
Cancel
Save