|
|
@ -485,15 +485,14 @@ void dpow_sigscheck(struct supernet_info *myinfo,struct dpow_info *dp,struct dpo |
|
|
|
{ |
|
|
|
bp->desttxid = txid; |
|
|
|
dpow_signedtxgen(myinfo,dp,bp->srccoin,bp,bp->bestk,bp->bestmask,myind,DPOW_SIGCHANNEL,0,0); |
|
|
|
} |
|
|
|
else bp->srctxid = txid; |
|
|
|
} else bp->srctxid = txid; |
|
|
|
len = (int32_t)strlen(bp->signedtx) >> 1; |
|
|
|
decode_hex(txdata+32,len,bp->signedtx); |
|
|
|
for (j=0; j<sizeof(srchash); j++) |
|
|
|
txdata[j] = txid.bytes[j]; |
|
|
|
dpow_send(myinfo,dp,bp,txid,bp->hashmsg,(src_or_dest != 0) ? DPOW_BTCTXIDCHANNEL : DPOW_TXIDCHANNEL,bp->height,txdata,len+32); |
|
|
|
bp->state = src_or_dest != 0 ? 1000 : 0xffffffff; |
|
|
|
printf("complete statemachine.%s ht.%d state.%d\n",coin->symbol,bp->height,bp->state); |
|
|
|
printf("complete statemachine.%s ht.%d state.%d (%x %x)\n",coin->symbol,bp->height,bp->state,bp->hashmsg.uints[0],txid.uints[0]); |
|
|
|
} else printf("sendtxid mismatch got %s instead of %s\n",bits256_str(str,txid),bits256_str(str2,signedtxid)); |
|
|
|
} |
|
|
|
free(retstr); |
|
|
|