Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
3e2e7029e4
  1. 6
      iguana/iguana_unspents.c

6
iguana/iguana_unspents.c

@ -1848,7 +1848,7 @@ int32_t iguana_realtime_update(struct iguana_info *coin)
{
printf("error generating spendvectors.[%d], exiting. just restart iguana\n",i);
exit(-1);
} else printf("generated UTXO.[%d]\n",i);
} // else printf("generated UTXO.[%d]\n",i);
coin->spendvectorsaved = 1;
}
}
@ -1876,7 +1876,7 @@ int32_t iguana_realtime_update(struct iguana_info *coin)
}
}
}
char str[65]; printf("check longest.%d RTheight.%d hwm.%d %s %p\n",coin->longestchain,coin->RTheight,coin->blocks.hwmchain.height,bits256_str(str,bp->hashes[0]),block);
//char str[65]; printf("check longest.%d RTheight.%d hwm.%d %s %p\n",coin->longestchain,coin->RTheight,coin->blocks.hwmchain.height,bits256_str(str,bp->hashes[0]),block);
if ( bits256_cmp(coin->RThash1,bp->hashes[1]) != 0 )
coin->RThash1 = bp->hashes[1];
bp->lastRT = (uint32_t)time(NULL);
@ -1953,7 +1953,7 @@ int32_t iguana_realtime_update(struct iguana_info *coin)
n = 0;
if ( dest != 0 && flag != 0 && coin->RTheight >= coin->longestchain )
{
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);
//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 )
{
printf("RTgenesis verified\n");

Loading…
Cancel
Save