Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
3ff796871a
  1. 5
      basilisk/basilisk_swap.c

5
basilisk/basilisk_swap.c

@ -524,12 +524,13 @@ void basilisk_swaploop(void *_swap)
{
uint8_t *data; int32_t i,j,maxlen,datalen,numconfirms; struct supernet_info *myinfo; struct basilisk_swap *swap = _swap;
myinfo = swap->myinfo;
printf("start swap\n");
fprintf(stderr,"start swap\n");
maxlen = 1024*1024 + sizeof(*swap);
data = malloc(maxlen);
getchar();
while ( time(NULL) < swap->expiration )
{
printf("swapstate.%x\n",swap->statebits);
fprintf(stderr,"swapstate.%x\n",swap->statebits);
if ( (swap->statebits & 0x01) == 0 ) // wait for pubkeys
{
if ( basilisk_swapget(myinfo,swap,0x01,data,maxlen,basilisk_verify_otherdeck) == 0 )

Loading…
Cancel
Save