Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
312658e943
  1. 2
      iguana/iguana777.h
  2. 6
      iguana/iguana_recv.c

2
iguana/iguana777.h

@ -23,7 +23,7 @@
typedef int32_t (*blockhashfunc)(uint8_t *blockhashp,uint8_t *serialized,int32_t len);
#define IGUANA_MAXSCRIPTSIZE 10001
#define IGUANA_SERIALIZE_SPENDVECTORGEN
//#define IGUANA_SERIALIZE_SPENDVECTORGEN
//#define IGUANA_SERIALIZE_BALANCEGEN
//#define IGUANA_DISABLEPEERS
#define _IGUANA_MAXSTUCKTIME 77

6
iguana/iguana_recv.c

@ -210,16 +210,16 @@ void iguana_gotblockM(struct iguana_info *coin,struct iguana_peer *addr,struct i
//block->bundlei = i;
//block->hdrsi = bp->hdrsi;
//bp->blocks[i] = block;
printf("cache bundlehashadd set.%d\n",i);
//printf("cache bundlehashadd set.%d\n",i);
iguana_bundlehash2add(coin,0,bp,i,origtxdata->block.RO.hash2);
//if ( block->req != 0 )
{
printf("cacheQ ");
//printf("cacheQ ");
//queue_enqueue("cacheQ",&coin->cacheQ,&req->DL,0);
//block->req = 0;
}
}
printf("speculative recv.[%d:%d] numcached.%d\n",bp->hdrsi,i,bp->numcached);
//printf("speculative recv.[%d:%d] numcached.%d\n",bp->hdrsi,i,bp->numcached);
bp = 0;
break;
}

Loading…
Cancel
Save