Browse Source

test

olddPoW
jl777 8 years ago
parent
commit
1e9d78fcd6
  1. 2
      iguana/dpow/dpow_fsm.c

2
iguana/dpow/dpow_fsm.c

@ -443,7 +443,7 @@ void dpow_statemachinestart(void *ptr)
dp->blocks[checkpoint.blockhash.height] = bp;
bp->beacon = rand256(0);
vcalc_sha256(0,bp->commit.bytes,bp->beacon.bytes,sizeof(bp->beacon));
if ( dp->blocks[checkpoint.blockhash.height - 1000] != 0 )
if ( checkpoint.blockhash.height > 0 && dp->blocks[checkpoint.blockhash.height - 1000] != 0 )
{
printf("purge %s.%d\n",dp->dest,checkpoint.blockhash.height - 1000);
free(dp->blocks[checkpoint.blockhash.height - 1000]);

Loading…
Cancel
Save