jl777 8 years ago
parent
commit
5b15ad25e8
  1. 2
      iguana/dPoW.h
  2. 1
      iguana/dpow/dpow_fsm.c

2
iguana/dPoW.h

@ -102,7 +102,7 @@ struct dpow_block
int32_t height,numnotaries,completed,minsigs,duration,numratified,isratify,require0,scores[DPOW_MAXRELAYS];
int8_t bestk;
cJSON *ratified;
uint8_t ratified_pubkeys[DPOW_MAXRELAYS][33]; char handles[DPOW_MAXRELAYS][32];
uint8_t myind,ratified_pubkeys[DPOW_MAXRELAYS][33]; char handles[DPOW_MAXRELAYS][32];
char signedtx[32768];//,rawtx[32768];
};

1
iguana/dpow/dpow_fsm.c

@ -603,6 +603,7 @@ void dpow_statemachinestart(void *ptr)
bp->height = checkpoint.blockhash.height;
bp->timestamp = checkpoint.timestamp;
bp->hashmsg = checkpoint.blockhash.hash;
bp->myind = myind;
while ( bp->isratify == 0 && dp->destupdated == 0 )
{
if ( dp->checkpoint.blockhash.height > checkpoint.blockhash.height )

Loading…
Cancel
Save