jl777 8 years ago
parent
commit
dd1c5934bb
  1. 8
      iguana/dpow/dpow_fsm.c
  2. 2
      iguana/dpow/dpow_rpc.c
  3. 2
      iguana/dpow/dpow_tx.c

8
iguana/dpow/dpow_fsm.c

@ -334,7 +334,7 @@ int32_t dpow_update(struct supernet_info *myinfo,struct dpow_info *dp,struct dpo
}
if ( ep->masks[src_or_dest][bp->bestk] == 0 )
{
printf("dpow update signedtxgen\n");
//printf("dpow update signedtxgen\n");
dpow_signedtxgen(myinfo,dp,(src_or_dest != 0) ? bp->destcoin : bp->srccoin,bp,bp->bestk,bp->bestmask,myind,DPOW_SIGBTCCHANNEL,src_or_dest);
}
if ( bp->bestk >= 0 && (rand() % 10) == 0 )
@ -349,7 +349,7 @@ int32_t dpow_update(struct supernet_info *myinfo,struct dpow_info *dp,struct dpo
}
if ( bp->bestk >= 0 && ep->masks[src_or_dest][bp->bestk] == 0 )
{
printf("dpow update2 signedtxgen\n");
//printf("dpow update2 signedtxgen\n");
dpow_signedtxgen(myinfo,dp,(src_or_dest != 0) ? bp->destcoin : bp->srccoin,bp,bp->bestk,bp->bestmask,myind,DPOW_SIGBTCCHANNEL,src_or_dest);
}
if ( bp->bestk >= 0 && (rand() % 10) == 0 )
@ -365,7 +365,7 @@ int32_t dpow_update(struct supernet_info *myinfo,struct dpow_info *dp,struct dpo
src_or_dest = 0;
if ( bp->bestk >= 0 && ep->masks[src_or_dest][bp->bestk] == 0 )
{
printf("dpow update src signedtxgen\n");
//printf("dpow update src signedtxgen\n");
dpow_signedtxgen(myinfo,dp,(src_or_dest != 0) ? bp->destcoin : bp->srccoin,bp,bp->bestk,bp->bestmask,myind,DPOW_SIGCHANNEL,src_or_dest);
}
if ( bp->bestk >= 0 && (rand() % 10) == 0 )
@ -387,7 +387,7 @@ int32_t dpow_update(struct supernet_info *myinfo,struct dpow_info *dp,struct dpo
dpow_sendcoinentrys(myinfo,dp,bp);
if ( bp->bestk >= 0 )
{
printf("dpow update ratify signedtxgen\n");
//printf("dpow update ratify signedtxgen\n");
dpow_signedtxgen(myinfo,dp,(bp->state < 1000) ? bp->destcoin : bp->srccoin,bp,bp->bestk,bp->bestmask,myind,bp->state < 1000 ? DPOW_SIGBTCCHANNEL : DPOW_SIGCHANNEL,bp->state < 1000);
}
printf("ht.%d numnotaries.%d BEST.%llx from RECV.%llx bestk.%d sigsmask.%llx missing.%llx\n",bp->height,bp->numnotaries,(long long)bp->bestmask,(long long)bp->recvmask,bp->bestk,bp->bestk>=0?(long long)bp->destsigsmasks[bp->bestk]:0,bp->bestk>=0?(long long)(bp->bestmask & ~bp->destsigsmasks[bp->bestk]):0);

2
iguana/dpow/dpow_rpc.c

@ -195,7 +195,7 @@ char *dpow_signrawtransaction(struct supernet_info *myinfo,struct iguana_info *c
jaddistr(array,rawtx);
jaddi(array,jduplicate(vins));
paramstr = jprint(array,1);
printf("signrawtransaction\n");
//printf("signrawtransaction\n");
retstr = bitcoind_passthru(coin->symbol,coin->chain->serverport,coin->chain->userpass,"signrawtransaction",paramstr);
//printf("%s signrawtransaction.(%s) params.(%s)\n",coin->symbol,retstr,paramstr);
free(paramstr);

2
iguana/dpow/dpow_tx.c

@ -307,7 +307,7 @@ void dpow_rawtxsign(struct supernet_info *myinfo,struct dpow_info *dp,struct igu
dpow_sigsend(myinfo,dp,bp,myind,bestk,bestmask,srchash,src_or_dest != 0 ? DPOW_SIGBTCCHANNEL : DPOW_SIGCHANNEL);
return;
}
printf("rawtxsign\n");
//printf("rawtxsign\n");
if ( (jsonstr= dpow_signrawtransaction(myinfo,coin,rawtx,vins)) != 0 )
{
if ( (signobj= cJSON_Parse(jsonstr)) != 0 )

Loading…
Cancel
Save