Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
241177cc04
  1. 9
      iguana/iguana_peers.c
  2. 3
      iguana/iguana_realtime.c

9
iguana/iguana_peers.c

@ -1300,9 +1300,12 @@ void iguana_dedicatedloop(struct supernet_info *myinfo,struct iguana_info *coin,
myfree(buf,bufsize);
if ( addr->filehash2 != 0 )
myfree(addr->filehash2,addr->maxfilehash2*sizeof(*addr->filehash2)), addr->filehash2 = 0;
iguana_mempurge(&addr->RAWMEM);
iguana_mempurge(&addr->TXDATA);
iguana_mempurge(&addr->HASHMEM);
if ( 0 )
{
iguana_mempurge(&addr->RAWMEM);
iguana_mempurge(&addr->TXDATA);
iguana_mempurge(&addr->HASHMEM);
}
#ifdef IGUANA_PEERALLOC
while ( (remaining= iguana_peerallocated(coin,addr)) > 0 )
{

3
iguana/iguana_realtime.c

@ -635,7 +635,7 @@ void iguana_RTnewblock(struct iguana_info *coin,struct iguana_block *block)
iguana_RTpurge(coin,coin->firstRTheight);
}
n = (block->height - coin->RTheight) + 1;
for (i=0; i<n; i++,coin->RTheight++)
for (i=0; i<n; i++)
{
height = (coin->RTheight + i);
hdrsi = (height / coin->chain->bundlesize);
@ -651,6 +651,7 @@ void iguana_RTnewblock(struct iguana_info *coin,struct iguana_block *block)
break;
}
}
coin->RTheight += i;
printf(">= RTnewblock RTheight %d prev %d\n",coin->RTheight,coin->lastRTheight);
}
else if ( block->height == coin->lastRTheight )

Loading…
Cancel
Save