|
|
@ -265,7 +265,7 @@ void dpow_sigscheck(struct supernet_info *myinfo,struct dpow_block *bp,uint32_t |
|
|
|
if ( bp->state != 0xffffffff && coin != 0 ) |
|
|
|
{ |
|
|
|
signedtxid = dpow_notarytx(bp->signedtx,&numsigs,coin->chain->isPoS,bp,bp->bestk,bp->bestmask,bp->opret_symbol,1,src_or_dest); |
|
|
|
printf("bestk.%d %llx %s numsigs.%d signedtx.(%s)\n",bp->bestk,(long long)bp->bestmask,bits256_str(str,signedtxid),numsigs,bp->signedtx); |
|
|
|
printf("src_or_dest.%d bestk.%d %llx %s numsigs.%d signedtx.(%s)\n",src_or_dest,bp->bestk,(long long)bp->bestmask,bits256_str(str,signedtxid),numsigs,bp->signedtx); |
|
|
|
bp->state = 1; |
|
|
|
if ( bits256_nonz(signedtxid) != 0 && numsigs == DPOW_M(bp) ) |
|
|
|
{ |
|
|
@ -288,7 +288,7 @@ void dpow_sigscheck(struct supernet_info *myinfo,struct dpow_block *bp,uint32_t |
|
|
|
decode_hex(txdata+32,len,bp->signedtx); |
|
|
|
for (j=0; j<sizeof(srchash); j++) |
|
|
|
txdata[j] = txid.bytes[j]; |
|
|
|
dpow_send(myinfo,bp,txid,bp->hashmsg,(channel == DPOW_SIGBTCCHANNEL) ? DPOW_BTCTXIDCHANNEL : DPOW_TXIDCHANNEL,bp->height,txdata,len+32,bp->txidcrcs); |
|
|
|
dpow_send(myinfo,bp,txid,bp->hashmsg,(src_or_dest != 0) ? DPOW_BTCTXIDCHANNEL : DPOW_TXIDCHANNEL,bp->height,txdata,len+32,bp->txidcrcs); |
|
|
|
printf("complete statemachine.%s ht.%d\n",coin->symbol,bp->height); |
|
|
|
bp->state = src_or_dest != 0 ? 1000 : 0xffffffff; |
|
|
|
} else printf("sendtxid mismatch got %s instead of %s\n",bits256_str(str,txid),bits256_str(str2,signedtxid)); |
|
|
|