diff --git a/iguana/iguana_notary.c b/iguana/iguana_notary.c index 64323ad2a..63e17c52c 100755 --- a/iguana/iguana_notary.c +++ b/iguana/iguana_notary.c @@ -603,7 +603,7 @@ int32_t dpow_signedtxgen(struct supernet_info *myinfo,struct dpow_info *dp,struc { if ( (jsonstr= dpow_signrawtransaction(myinfo,coin,rawtx,vins)) != 0 ) { - printf("dpowsign.(%s)\n",jsonstr); + //printf("dpowsign.(%s)\n",jsonstr); if ( (signobj= cJSON_Parse(jsonstr)) != 0 ) { if ( ((signedtx= jstr(signobj,"hex")) != 0 || (signedtx= jstr(signobj,"result")) != 0) && (rawtx2= dpow_decoderawtransaction(myinfo,coin,signedtx)) != 0 ) @@ -732,7 +732,7 @@ int32_t dpow_mostsignedtx(struct supernet_info *myinfo,struct dpow_info *dp,stru void dpow_txidupdate(struct supernet_info *myinfo,struct dpow_info *dp,struct iguana_info *coin,uint64_t *recvmaskp,uint32_t channel,int32_t height,struct dpow_entry notaries[DPOW_MAXRELAYS],int32_t numnotaries,int32_t myind,bits256 hashmsg) { - int32_t i,j,k,m; cJSON *item,*retarray; bits256 desthash,srchash,checkmsg; + int32_t i,j,k,m,vout; cJSON *item,*retarray; bits256 desthash,srchash,checkmsg,txid; for (j=0; jDPOW.minerkey33[j+1]; for (i=0; i 8 ) incr = sqrt(numnotaries) + 1; else incr = 1; @@ -836,18 +841,20 @@ uint32_t dpow_statemachineiterate(struct supernet_info *myinfo,struct dpow_info { printf("too many entries, prune to %d\n",numnotaries/2+1); mask = 0; - for (j=m=0; j= numnotaries/2+1 ) break; } } } else mask = *recvmaskp; - if ( bitweight(mask) == numnotaries/2+1 ) + if ( bitweight(mask) == numnotaries/2+1 && k == numnotaries/2+1 ) { if ( dpow_signedtxgen(myinfo,dp,coin,signedtxidp,signedtx,mask,k,notaries,numnotaries,heightmsg,myind,hashmsg,btctxid,timestamp) == 0 ) {