From 1a67f905bb4c5da6075ca781de235214d4005ad7 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 16 Nov 2016 15:16:12 -0300 Subject: [PATCH] test --- iguana/dPoW.h | 2 +- iguana/dpow/dpow_tx.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/iguana/dPoW.h b/iguana/dPoW.h index ffbe766a3..5547eab2b 100755 --- a/iguana/dPoW.h +++ b/iguana/dPoW.h @@ -100,7 +100,7 @@ struct dpow_block uint64_t recvmask,bestmask,ratifybestmask,ratifyrecvmask,pendingbestmask,pendingratifybestmask,ratifysigmasks[2]; struct dpow_entry notaries[DPOW_MAXRELAYS]; 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; cJSON *ratified; uint8_t myind,ratified_pubkeys[DPOW_MAXRELAYS][33],ratifysigs[2][76],ratifysiglens[2]; diff --git a/iguana/dpow/dpow_tx.c b/iguana/dpow/dpow_tx.c index aba3a14ba..de0acbf47 100755 --- a/iguana/dpow/dpow_tx.c +++ b/iguana/dpow/dpow_tx.c @@ -511,7 +511,9 @@ void dpow_sigscheck(struct supernet_info *myinfo,struct dpow_info *dp,struct dpo else { 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); }