Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
5c361e98dc
  1. 2
      iguana/iguana_bundles.c
  2. 2
      iguana/iguana_msg.c

2
iguana/iguana_bundles.c

@ -439,7 +439,7 @@ int64_t iguana_bundlecalcs(struct iguana_info *coin,struct iguana_bundle *bp)
bp->emitfinish = 1;
iguana_emitQ(coin,bp);
}
else bp->metric = sqrt((sqrt(fabs(bp->estsize - bp->datasize)) * (bp->n - bp->numsaved)) * (bp->hdrsi + 1));
else bp->metric = (2*bp->n - bp->numsaved - bp->numrecv);//sqrt((sqrt(fabs(bp->estsize - bp->datasize)) * (bp->n - bp->numsaved)) * (bp->hdrsi + 1));
}
//printf("%f ",bp->metric);
return(bp->estsize);

2
iguana/iguana_msg.c

@ -533,7 +533,7 @@ int32_t iguana_msgparser(struct iguana_info *coin,struct iguana_peer *addr,struc
if ( len == recvlen && addr != 0 )
addr->msgcounts.headers++;
} else printf("got unexpected n.%d for headers\n",n);
printf("GOT HEADERS n.%d len.%d\n",n,len);
//printf("GOT HEADERS n.%d len.%d\n",n,len);
}
else if ( strcmp(H->command,"tx") == 0 )
{

Loading…
Cancel
Save