jl777 8 years ago
parent
commit
e65f7d7016
  1. 2
      iguana/iguana_recv.c
  2. 4
      includes/iguana_structs.h

2
iguana/iguana_recv.c

@ -810,6 +810,8 @@ void iguana_gotblockM(struct supernet_info *myinfo,struct iguana_info *coin,stru
//printf("getblockM update [%d:%d] %s\n",bp->hdrsi,bundlei,bits256_str(str,origtxdata->zblock.RO.hash2));
if ( block != 0 )
{
if ( block->height < 0 )
block->bundlei = -1;
block->txvalid = 1;
if ( block->fpipbits != 0 && block->fpos >= 0 )
{

4
includes/iguana_structs.h

@ -214,8 +214,8 @@ struct iguana_zblockRO
} PACKEDSTRUCT;
#define iguana_blockfields double PoW; \
int32_t height,fpos; uint32_t fpipbits,issued,lag:18,sigsvalid:1,protected:1,peerid:12; \
uint16_t hdrsi:15,mainchain:1,bundlei:11,valid:1,queued:1,txvalid:1,newtx:1,processed:1; \
int32_t height,fpos; uint32_t fpipbits,issued,lag:17,sigsvalid:1,protected:1,peerid:12,processed:1; \
uint16_t hdrsi:15,mainchain:1; int16_t bundlei:12,valid:1,queued:1,txvalid:1,newtx:1; \
UT_hash_handle hh; struct iguana_bundlereq *req; \
struct iguana_blockRO RO

Loading…
Cancel
Save