jl777 8 years ago
parent
commit
1a67f905bb
  1. 2
      iguana/dPoW.h
  2. 4
      iguana/dpow/dpow_tx.c

2
iguana/dPoW.h

@ -100,7 +100,7 @@ struct dpow_block
uint64_t recvmask,bestmask,ratifybestmask,ratifyrecvmask,pendingbestmask,pendingratifybestmask,ratifysigmasks[2]; uint64_t recvmask,bestmask,ratifybestmask,ratifyrecvmask,pendingbestmask,pendingratifybestmask,ratifysigmasks[2];
struct dpow_entry notaries[DPOW_MAXRELAYS]; struct dpow_entry notaries[DPOW_MAXRELAYS];
uint32_t state,starttime,timestamp,waiting,sigcrcs[2],txidcrcs[2],utxocrcs[2],lastepoch; uint32_t state,starttime,timestamp,waiting,sigcrcs[2],txidcrcs[2],utxocrcs[2],lastepoch;
int32_t height,numnotaries,completed,minsigs,duration,numratified,isratify,require0,scores[DPOW_MAXRELAYS]; int32_t height,numnotaries,numerrors,completed,minsigs,duration,numratified,isratify,require0,scores[DPOW_MAXRELAYS];
int8_t bestk,ratifybestk,pendingbestk,pendingratifybestk; int8_t bestk,ratifybestk,pendingbestk,pendingratifybestk;
cJSON *ratified; cJSON *ratified;
uint8_t myind,ratified_pubkeys[DPOW_MAXRELAYS][33],ratifysigs[2][76],ratifysiglens[2]; uint8_t myind,ratified_pubkeys[DPOW_MAXRELAYS][33],ratifysigs[2][76],ratifysiglens[2];

4
iguana/dpow/dpow_tx.c

@ -511,7 +511,9 @@ void dpow_sigscheck(struct supernet_info *myinfo,struct dpow_info *dp,struct dpo
else else
{ {
printf("NULL return from sendrawtransaction. abort\n"); printf("NULL return from sendrawtransaction. abort\n");
bp->state = 0xffffffff; if ( bp->numerrors++ < 10 )
sleep(10);
else bp->state = 0xffffffff;
} }
} else printf("numsigs.%d vs required.%d\n",numsigs,bp->minsigs); } else printf("numsigs.%d vs required.%d\n",numsigs,bp->minsigs);
} }

Loading…
Cancel
Save