Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
5c5df88dfc
  1. 4
      iguana/iguana777.c
  2. 2
      iguana/iguana_recv.c

4
iguana/iguana777.c

@ -374,14 +374,14 @@ void iguana_coinloop(void *arg)
coin->chain->minconfirms = coin->minconfirms;
}
}
printf("after init loop\n"), getchar();
coin = coins[0];
iguana_rwiAddrind(coin,0,0,0);
iguana_possible_peer(coin,"127.0.0.1");
//while ( 1 ) sleep(1);
memset(zero.bytes,0,sizeof(zero));
if ( (bp= iguana_bundlecreate(coin,&bundlei,0,*(bits256 *)coin->chain->genesis_hashdata,zero,1)) != 0 )
bp->bundleheight = 0;
printf("after bundlecreate\n"), getchar();
while ( 1 )
{
//printf("iter\n");

2
iguana/iguana_recv.c

@ -902,7 +902,7 @@ int32_t iguana_reqblocks(struct iguana_info *coin)
}
else if ( bp->speculative != 0 && bits256_nonz(bp->speculative[bundlei]) > 0 )
{
printf("speculative next %d\n",coin->blocks.hwmchain.height+1);
//printf("speculative next %d\n",coin->blocks.hwmchain.height+1);
iguana_blockQ(coin,0,-1,bp->speculative[bundlei],0);
}
}

Loading…
Cancel
Save