Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
679f609214
  1. 6
      iguana/iguana_realtime.c
  2. 2
      iguana/iguana_recv.c

6
iguana/iguana_realtime.c

@ -226,7 +226,7 @@ int32_t iguana_realtime_update(struct supernet_info *myinfo,struct iguana_info *
} }
if ( coin->spendvectorsaved <= 1 ) if ( coin->spendvectorsaved <= 1 )
{ {
printf("%s spendvectorsaved not yet\n",coin->symbol); //printf("%s spendvectorsaved not yet\n",coin->symbol);
usleep(100000); usleep(100000);
return(0); return(0);
} }
@ -298,8 +298,10 @@ printf("%s spendvectorsaved not yet\n",coin->symbol);
B = RAMCHAIN_PTR(rdata,Boffset); B = RAMCHAIN_PTR(rdata,Boffset);
bundlei = (coin->RTheight % coin->chain->bundlesize); bundlei = (coin->RTheight % coin->chain->bundlesize);
if ( (block= iguana_bundleblock(coin,&hash2,bp,bundlei)) != 0 ) if ( (block= iguana_bundleblock(coin,&hash2,bp,bundlei)) != 0 )
{
iguana_bundlehashadd(coin,bp,bundlei,block); iguana_bundlehashadd(coin,bp,bundlei,block);
printf("RT.%d vs hwm.%d starti.%d bp->n %d block.%p/%p ramchain.%p databad.%d prevnonz.%d\n",coin->RTheight,coin->blocks.hwmchain.height,coin->RTstarti,bp->n,block,bp->blocks[bundlei],dest->H.data,coin->RTdatabad,bits256_nonz(block->RO.prev_block)); //printf("RT.%d vs hwm.%d starti.%d bp->n %d block.%p/%p ramchain.%p databad.%d prevnonz.%d\n",coin->RTheight,coin->blocks.hwmchain.height,coin->RTstarti,bp->n,block,bp->blocks[bundlei],dest->H.data,coin->RTdatabad,bits256_nonz(block->RO.prev_block));
}
if ( coin->RTdatabad == 0 && block != 0 && (block->height == 0 || bits256_nonz(block->RO.prev_block) != 0) ) if ( coin->RTdatabad == 0 && block != 0 && (block->height == 0 || bits256_nonz(block->RO.prev_block) != 0) )
{ {
//printf("bundlei.%d blockht.%d RTheight.%d\n",bundlei,block->height,coin->RTheight); //printf("bundlei.%d blockht.%d RTheight.%d\n",bundlei,block->height,coin->RTheight);

2
iguana/iguana_recv.c

@ -1639,7 +1639,7 @@ int32_t iguana_pollQsPT(struct iguana_info *coin,struct iguana_peer *addr)
int32_t iguana_processrecv(struct supernet_info *myinfo,struct iguana_info *coin) // single threaded int32_t iguana_processrecv(struct supernet_info *myinfo,struct iguana_info *coin) // single threaded
{ {
int32_t i,newhwm = 0,hwmheight,flag = 0; char str[2000]; int32_t newhwm = 0,hwmheight,flag = 0; char str[2000];
hwmheight = coin->blocks.hwmchain.height; hwmheight = coin->blocks.hwmchain.height;
coin->RTramchain_busy = 1; coin->RTramchain_busy = 1;
if ( coin->balanceflush != 0 ) if ( coin->balanceflush != 0 )

Loading…
Cancel
Save