Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
cadefd6688
  1. 2
      basilisk/basilisk.c
  2. 2
      iguana/iguana_recv.c

2
basilisk/basilisk.c

@ -276,9 +276,9 @@ void basilisk_p2p(void *_myinfo,void *_addr,char *senderip,uint8_t *data,int32_t
{
uint32_t ipbits,basilisktag; int32_t i,havehash,msglen,len=0; void *ptr = 0; uint8_t space[8192]; bits256 senderpub,hash,tmp,hash2; struct supernet_info *myinfo = _myinfo;
hash = GENESIS_PUBKEY;
printf("received basilisk_p2p.(%s) from %s\n",type,senderip!=0?senderip:"?");
if ( encrypted != 0 )
{
printf("encrypted basilisk_p2p.(%s) from %s\n",type,senderip!=0?senderip:"?");
memset(senderpub.bytes,0,sizeof(senderpub));
if ( (data= SuperNET_deciphercalc(&ptr,&msglen,myinfo->privkey,senderpub,data,datalen,space,sizeof(space))) == 0 )
{

2
iguana/iguana_recv.c

@ -914,7 +914,7 @@ struct iguana_bundlereq *iguana_recvblockhashes(struct iguana_info *coin,struct
memset(zero.bytes,0,sizeof(zero));
bp = 0, bundlei = -2;
iguana_bundlefind(coin,&bp,&bundlei,blockhashes[1]);
if ( strcmp("BTCD",coin->symbol) == 0 )//0 && num >= coin->chain->bundlesize )
if ( 0 && strcmp("BTCD",coin->symbol) == 0 )//0 && num >= coin->chain->bundlesize )
printf("blockhashes[%d] %d of %d %s bp.%d[%d]\n",num,bp==0?-1:bp->hdrsi,coin->bundlescount,bits256_str(str,blockhashes[1]),bp==0?-1:bp->bundleheight,bundlei);
if ( num < 2 )
return(req);

Loading…
Cancel
Save